Support » Installing WordPress » Error Establishing Database…but still works sporadically (GoDaddy)

  • jedimattkb


    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’, ‘’); //

    // 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 to wp-includes/languages and set WPLANG to ‘de’
    // to enable German language support.
    define (‘WPLANG’, ”);

    /* Stop editing */

    define(‘ABSPATH’, dirname(__FILE__).’/’);

    “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?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Kahil


    i’m using GoDaddy and i’m not having the problem… don’t bother contacting customer service because they are just a bunch dumb fucks who don’t know shit…

    hopefully you haven’t gotten too much on your database…cause i prolly would suggest deleting everything and starting over to see if that works. by that i mean delete all the wordpress files and the database too… just create a new database, upload and instal wordpress again.

    other than that, i’m not sure on what else to do…




    How do I obtain the wordpress program to install?



    JimKelley: see the Download tab at the top of the page.



    How do I obtain the wordpress program to install?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Error Establishing Database…but still works sporadically (GoDaddy)’ is closed to new replies.