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.
What is my database socket path?
Finding the location of your database socket

Written by Ignas Rimkūnas
Updated over a week ago
Updated over a week ago