Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)解决办法
1.source ~/.bash_profile (重新加载)
2.打开系统的偏好设置启动mysql
再次输入mysql -uroot -p
登陆成功
相关文章:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)解决办法
1.source ~/.bash_profile (重新加载)
2.打开系统的偏好设置启动mysql
再次输入mysql -uroot -p
登陆成功
相关文章: