Problem about IP and computer name in Ubuntu
Posted
by bugbug
on Server Fault
See other posts from Server Fault
or by bugbug
Published on 2009-10-01T08:03:23Z
Indexed on
2010/03/26
21:03 UTC
Read the original article
Hit count: 312
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.
© Server Fault or respective owner