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.
Finding the location of your database socket
Updated over a week ago