There is a problem with your MySQL server configuration. Nothing to do with Drupal.
Check your MySQL error log file for any indication of the problem.
Maybe your MySQL server is restarting by itself when a connection is made, maybe caused by conflicting mysql libs or mysql misconfiguration or mysql data corruption.
@sanjith - You get the same error as STyL3 every few days for a couple of minutes and then everything is fine?
You are most likely on a shared host and your hosting provider is restarting their MySQL server for maintenance or maybe they have problems.
If you are having the same error non-stop, then try:
Changing the server host from "localhost" to "127.0.0.1" to see if that fixes it.
Make sure that the credentials in your settings.php ($db_url) are correct.
Make sure that your MySQL server is running.
Check the MySQL server logs.
Check your php and/or apache error logs.
Comments
Comment #1
roychri commentedThere is a problem with your MySQL server configuration. Nothing to do with Drupal.
Check your MySQL error log file for any indication of the problem.
Maybe your MySQL server is restarting by itself when a connection is made, maybe caused by conflicting mysql libs or mysql misconfiguration or mysql data corruption.
Comment #2
sanjith commentedHi
Now I was also having same problem !
If u have any solution plz give me
Comment #3
roychri commented@sanjith - You get the same error as STyL3 every few days for a couple of minutes and then everything is fine?
You are most likely on a shared host and your hosting provider is restarting their MySQL server for maintenance or maybe they have problems.
If you are having the same error non-stop, then try:
Changing the server host from "localhost" to "127.0.0.1" to see if that fixes it.
Make sure that the credentials in your settings.php ($db_url) are correct.
Make sure that your MySQL server is running.
Check the MySQL server logs.
Check your php and/or apache error logs.
Comment #4
leenve commentedI did use 127.0.0.1 and now it works indeed!!
Don't ask me why.
I use OpenSuse 11.2 and KDE 4.4.
Groet,
Leendert