ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' 1.查看一下mysql的状态 systemctl status mariadb 2.启动mysql systemctl start mariadb