WordPress.org

Ready to get started?Download WordPress

Forums

Error Establishing Database...but still works sporadically (GoDaddy) (5 posts)

  1. jedimattkb
    Member
    Posted 8 years ago #

    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:

    <?php
    // ** 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 */

    define('ABSPATH', dirname(__FILE__).'/');
    require_once(ABSPATH.'wp-settings.php');

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

  2. Kahil
    Member
    Posted 8 years ago #

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

    sorry...

  3. JimKelley
    Member
    Posted 8 years ago #

    Kahil,
    How do I obtain the wordpress program to install?
    Jim

  4. vkaryl
    Member
    Posted 8 years ago #

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

  5. JimKelley
    Member
    Posted 8 years ago #

    Kahil,
    How do I obtain the wordpress program to install?
    Jim

Topic Closed

This topic has been closed to new replies.

About this Topic