MySQL connection over TCP/IP fails
I have just finished setting up MySQL and PostgreSQL on my webserver, and both are running fine when I work from a shell on the server. For instance, I can connect to the MySQL from the shell, by typing
mysql
but if I try to connect through an IP address, i.e. by writing
mysql -h 127.0.0.1 --user root -p
I get the message
ERROR 2003: Can't conenct to MySQL server on '127.0.0.1" (111)
My firewall is properly configured to allow connections on 3306 so I doubt that that is the problem. In order to get the PostgreSQL server to accept connections, I had to add a crypitc line to the
/etc/rc.d/init.d/postgresql
file. Do I need to do something similar to get MySQL to accept connections?
I am using Fedora Core on an x86 machine
/Rukawa
|