命令行连接mysql mysql -uroot报错ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run找到mysql目录,删除ib_logfile0、ib_logfile1等文件restart服务器再次连接解决