Problem about IP and computer name in Ubuntu
- by bugbug
I can't connect to mysql database becase it alway change 192.168.1.101 to ubuntu.local.
$ mysql -uroot -padmin1234 -h192.168.1.101
ERROR 1045 (28000) : Access denined for user 'root'@'ubuntu.local' (using password: YES)
How do I solve this problem.
File: /etc/hosts in this machine
127.0.0.1 localhost
127.0.1.1 ubuntu.ubuntu-domain ubuntu
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
I have no idea about "root'@'ubuntu.local", where is it come from.