/ tech-note

Where is the MySQL socket file in macOS and Ubuntu?

In macOS: /tmp/mysql.sock

In Ubuntu: /var/run/mysqld/mysqld.sock