Error Establishing Database…but still works sporadically (GoDaddy)
Alright, I just recently moved from free hosting (unreliable as heck) to GoDaddy, and I’m having a heck of time getting things to work consistently.
I’ll manage to get my blog working sporadically, but then (randomly) it’ll stop working and give me the following:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
Problem is, my wp-config.php file isn’t directed at localhost, it’s directed (correctly) to the string that GoDaddy requires:
// ** MySQL settings ** //
define(‘DB_NAME’, ‘myname’); // The name of the database
define(‘DB_USER’, ‘myname’); // Your MySQL username
define(‘DB_PASSWORD’, ‘*******’); // …and password
define(‘DB_HOST’, ‘mysql13.secureserver.net’); //
// Change the prefix if you want to have multiple blogs in a single database.
$table_prefix = ‘wp_’; // example: ‘wp_’ or ‘b2’ or ‘mylogin_’
// Change this to localize WordPress. A corresponding MO file for the
// chosen language must be installed to wp-includes/languages.
// For example, install de.mo to wp-includes/languages and set WPLANG to ‘de’
// to enable German language support.
define (‘WPLANG’, ”);
/* Stop editing */
“Localhost” isn’t found once in there, and I don’t know why my blog keeps randomly looking for it instead of the specified database.
I’ll delete the config, re-upload a new one, delete it agian, re-upload a new one, and then all of sudden things will work for about 15 minutes, then back to the “Error” again.
I’m frustrated beyond words.
Anyone else had a problem like this or know what is up?
- The topic ‘Error Establishing Database…but still works sporadically (GoDaddy)’ is closed to new replies.