Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
(HY000/2002): 无法通过套接字'/var/lib/mysql/mysql.sock 连接到本地 MySQL 服务器
有谁知道这个问题的解决方案?
也许这会有所帮助。
您确定 mysqld 正在运行并在端口 3306 上侦听吗? netstat -a应该很快告诉你。
netstat -a
这可能会有所帮助。
http://www.tech-recipes.com/rx/762/solve-cant-connect-to-local-mysql-server-through-socket-tmpmysqlsock/