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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...