mysql本地连接客户端报错 问题一:Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) 解决办法:在bin目录下 重新执行一下./mysqld再连接就行了。