我在我的 debian 服务器上连接 mysql 时遇到问题。我运行mysql -u root
并收到错误消息:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)
Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
所以我做了,我运行了命令sudo find / -type s
并得到了
/run/proftpd.sock
/run/mysqld/mysqld.sock
不是/var/run/mysqld/mysqld.sock
!
我只是想建立一个数据库服务器来测试它。我该怎么办?