The default location for the Unix socket file that the server uses for communication with local clients is /var/lib/mysql/mysql.sock. In case you are using VPS, depending on the Operating system you choose - the socket path might differ.

Did this answer your question?