Home>

Mysql -u root after restarting suddenly resulted in an error that prevented me from proceeding.

Error message
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

sudo mysql.server restart is executed but a password is requested and it cannot proceed.
* It has been requested after updating mac.

$sudo mysql.server restart
Password:
Sorry, try again.
Password:
Sorry, try again.
Password:
sudo: 3 incorrect password attempts
Mysql -u root -p password tried
・ password set in mac (I have only set the Enter key because I have not set it)
・ Root
・ Secret
・ Password
Supplemental information (FW/tool version etc.)

OS: mac