执行mysql -uroot -ppassword出错,错误信息如下: Can't connect to local Mysql Server through socket '/tmp/mysql.sock'
具体解决方式使用命令:mysql -uroot -h 127.0.0.1 -p命令进入mysql即可 参考文章:亲测有效,解决Can 't connect to local MySQL server through socket '/tmp/mysql.sock '(2) ";