Ubuntu连接MySql报错“can‘t connect to local mysql server through socket ‘/var/run/mysqld/mysqld.sock‘”

https://blog.csdn.net/m0_37829435/article/details/81564662

或者 指定 socket 文件链接 用以下命令

mysql --socket=/home/ubuntu/php/9_ok/android.mysql/tmp/mysql.socket -uroot

Guess you like

Origin blog.csdn.net/guoruijun_2012_4/article/details/116790060