mysql,Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) "

 

 

# mysql -uroot -p
Enter password:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)mysql

 

若是隻是登錄查詢用,能夠  # mysql -uroot -h 127.0.0.1 -p  便可,若是要詳細參見:
https://blog.csdn.net/hjf161105/article/details/78850658
sql

相關文章
相關標籤/搜索