How to Fix a Missing MySQL Socket (Mamp)?

1k Views Asked by At
Darshans-MacBook-Air-2:~ Darshan1$ sudo mkdir /var/mysql
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:

What to type in password?

mysql.sock not showing in folder

1

There are 1 best solutions below

2
Bernd Buffen On

try this to see where the socket is. MySQL will create on startup

MariaDB [yourSchema]> show variables like '%socket%';
+-----------------------------------------+-----------------+
| Variable_name                           | Value           |
+-----------------------------------------+-----------------+
| performance_schema_max_socket_classes   | 10              |
| performance_schema_max_socket_instances | -1              |
| socket                                  | /tmp/mysql.sock |
+-----------------------------------------+-----------------+
3 rows in set (0.07 sec)

MariaDB [yourSchema]>