Configure MySQL server to use TCP connections instead of Unix sockets?

Comment out the option:

 skip-networking

in the file:

my.cnf

which typically lies in the directory /etc or /etc/mysql.

Then restart your MySQL server:

service mysql restart

or

/etc/init.d/mysql restart

with the command:

netstat -ta

you can check if MySQL is reachable via TCP.

Leave a Comment

*