Digital Marketing

Connect to MySQL TCP instead of a socket

Method 1:
Do not use localhost - use instead. Many clients have an internal alias that makes them connect to the socket if you specify localhost as target.

Method 2:
Specify that you want to use TCP and not a socket (mysql --protocol tcp)

You can also easily make that the default my editing your my.cnf so it has this ([client] means any client:



Popular posts from this blog

MySQL Sandbox with the Sakila sample database