1.错误日志 日志信息:Can‘t connect to local MySQL server through socket ‘/tmp/mysql.sock‘ 解决方法:连接数据库时加主机IP mysql -h127.0.0.1 -u root -p