mac登录mysql显示Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ (2)
显示 Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
输入
sudo chown -RL root:mysql /usr/local/mysql
sudo chown -RL mysql:mysql /usr/local/mysql/data
sudo /usr/local/mysql/support-files/mysql.server start
即可显示开启mysql
接下来就可以登陆啦
...
原创
2022-03-28 08:25:56 ·
1444 阅读 ·
1 评论