Jump to content

Database Error:can't Connect To Local Mysql Server Through '/var/lib/mysql/mysql.sock' (2)


golatificon

Recommended Posts

hello, i have problem with website:

 

Database error:Can't connect to local MySQL server through '/var/lib/mysql/mysql.sock' (2) ....(path to database connection)

 

i get this often but not always

searched the web didnt find solution, every1 talks about local host,

i have 2 databases where 1 privileged user(at phpmyadmin) is connecting it at same , maybe thats the problem?

Link to comment
Share on other sites

Yep. That error is the database server being down. You dot mention what server you're on, but if its Stevie, the error is likely due to the broken MySQL server. Stevie's MySQL tends to give that error a lot ever since the crash.

Link to comment
Share on other sites

Im pretty sure the max number of connections is limited for the server, not your account. When the limit is reached, everything that tries to connect sees that error until something disconnects and makes room.

 

I see it quite a bit too in my apps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...