I’m getting this error Can’t connect to local Mysql server through socket '/var/lib/mysql/mysql.Sock' (2)

Asked

Viewed 159 times

1

Everything was working, but after a while I started constantly getting this mistake:

Can’t connect to local Mysql server through socket '/var/lib/mysql/mysql.Sock' (2)

The mysql server seems to be constantly falling. Then I restart and he eventually falls again.

  • Tested if the Mysql server is running?

  • He had fallen, but seems to be always falling

  • He wasn’t running, so I rebooted. It seems like something is making him constantly fall

  • You need to check for corruption in any table or database. It would be the case of you [Dit] the question and for as many details as possible, because as it is, we would need to ask several questions here in the comments until we can understand the problem. If you can supplement the question with everything you have tested and tried, it would be good. Here are some tips: [Ask]

  • I restart everything and it seems to be working, but I had done it before so I imagine that within a while it will fall again

  • 1

    Amadeu, is your application terminating connections with Mysql after using them? This may be connection limit.

  • How do you connect??? Localhost or 127.0.0.1?

  • Okay what I did was increase the ram memory and I changed the processor to a faster one and that worked.

Show 3 more comments

1 answer

0


Okay what I did was increase the ram memory and changed the processor to a faster one and that worked. I had no further problems after these changes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.