can't connect to mysql server remotely
Posted: 15. May 2014, 00:46
Hello all,
I've got a guest running Fedora 20, and I installed mysql on it. mysql is running on the guest and port forwarding appears to be setup correctly. I know it's working correctly because of this:
$ nc -z -w1 10.181.178.157 3306
Connection to 10.181.178.157 3306 port [tcp/mysql] succeeded!
$ echo X | telnet -e X 10.181.178.157 3306
Telnet escape character is 'X'.
Trying 10.181.178.157...
Connected to 10.181.178.157 (10.181.178.157).
Escape character is 'X'.
telnet> Connection closed.
However, when I actually try to connect to the mysql server using a client, I get this:
$ mysql -h 10.181.178.157 -uXXX
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Has anyone encountered this before? I've been pulling my hair out all day trying to get this to work.
I've got a guest running Fedora 20, and I installed mysql on it. mysql is running on the guest and port forwarding appears to be setup correctly. I know it's working correctly because of this:
$ nc -z -w1 10.181.178.157 3306
Connection to 10.181.178.157 3306 port [tcp/mysql] succeeded!
$ echo X | telnet -e X 10.181.178.157 3306
Telnet escape character is 'X'.
Trying 10.181.178.157...
Connected to 10.181.178.157 (10.181.178.157).
Escape character is 'X'.
telnet> Connection closed.
However, when I actually try to connect to the mysql server using a client, I get this:
$ mysql -h 10.181.178.157 -uXXX
ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 0
Has anyone encountered this before? I've been pulling my hair out all day trying to get this to work.