Jump to content

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


Recommended Posts

Posted

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?

Posted

In my opinion, it should not be a problem related with privileges, as it should give Access error in that case.

 

It could be a case, when the mysql service is down.

Posted

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.

Posted

yeah im at steave, so its not up to me .., ok, tnx everyone

 

edit: just got:

 

"Warning: mysql_connect() [function.mysql-connect]: Too many connections in /path to connection do database/

Too many connections "

 

and i was the only one at site

Posted

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.

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...