[英]After system update getting error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)'
error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' 错误:“无法通过套接字'/var/run/mysqld/mysqld.sock'(2)连接到本地MySQL服务器”
I have been tried most off solutions given for above error but i am not able to connect mysql server. 我已经尝试过针对上述错误给出的大多数解决方案,但是我无法连接mysql服务器。 It had been working before my ubuntu system update.
在我的ubuntu系统更新之前,它一直在工作。
I found the problem, The mysql library update stucks. 我发现了问题,mysql库更新卡住了。 That is why mysql server updating process not be completing.
这就是为什么mysql服务器更新过程未完成的原因。
When i check command "ps aux | grep mysql", i got process list of mysql update stuck processing as in given below image click here to show image 当我检查命令“ ps aux | grep mysql”时,我得到了mysql更新卡住处理的进程列表,如下图所示。
So, when i killed those both processes(pid=6728 and 7041), I am able to connect mysql server easily. 因此,当我杀死了这两个进程(pid = 6728和7041)时,我能够轻松连接mysql服务器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.