简体   繁体   中英

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)'

I have been tried most off solutions given for above error but i am not able to connect mysql server. It had been working before my ubuntu system update.

I found the problem, The mysql library update stucks. That is why mysql server updating process not be completing.

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

So, when i killed those both processes(pid=6728 and 7041), I am able to connect mysql server easily.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM