• Resolved purpaula

    (@purpaula)


    Greetings, I think I’ve setup everything correctly however, I get this messege:

    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 DB_HOST. This could mean your host’s database server is down.

    Are you sure you have the correct username and password? YES
    Are you sure that you have typed the correct hostname? YES
    Are you sure that the database server is running? I THINK SO

    I setup the MySQL database and have all the required information. Below is my wp-config.php file:
    <?php
    // ** MySQL settings ** //
    define(‘myblog’, ‘wordpress’); // The name of the database
    define(‘myusername’, ‘username’); // Your MySQL username
    define(‘mypassword’, ‘password’); // …and password
    define(‘myserver’, ‘localhost’); // 99% chance you won’t need to change this value – it’s not local host and I have defined the server

    Any help would be appreciated.

Viewing 15 replies - 1 through 15 (of 22 total)
  • First we’d have to know who you’re hosted with.

    Thread Starter purpaula

    (@purpaula)

    Crystaltech.com

    That’s good, it’s NOT godaddy!

    Okay, so you created the database first, right?

    Thread Starter purpaula

    (@purpaula)

    correct

    Okay, then, you have to double-verify that all the info for the wp-config.php file is correct. Generally, a host will set up the database as YourUsername_databasename; the database user will be YourUsername_databaseusername (um – you DID add the database user to the database, right?); and under normal circs the server is localhost (but not on godaddy, which is why I asked that up front)….

    Thread Starter purpaula

    (@purpaula)

    I created a user and passwd and the server isn’t localhost on crystaltech – I’ve provided the server information crystaltech provides

    Purpaula wrote:
    define(‘myblog’, ‘wordpress’); // The name of the database
    define(‘myusername’, ‘username’); // Your MySQL username
    define(‘mypassword’, ‘password’); // …and password
    define(‘myserver’, ‘localhost’); // 99% chance you won’t need to change this value – it’s not local host and I have defined the server

    Original config file:
    define(‘DB_NAME’, ‘___’); // The name of the database
    define(‘DB_USER’, ‘___’); // Your MySQL username
    define(‘DB_PASSWORD’, ‘___’); // …and password
    define(‘DB_HOST’, ‘___’); // 99% chance you won’t need to change this value

    Do NOT change the values in the first quoted column, i.e. DB_NAME, DB_USER, etc. Only change the values in the subsequent quoted column, i.e. ‘___’

    Yeah, unless crystaltech requires the other for some reason. Seems as if I recall they’re “different”.

    Thread Starter purpaula

    (@purpaula)

    I called them to confirm this information was correct and have included it in the config.php file

    Purpaula…. hmmm. But what if they were saying “yourblog” meaning what wp would put there?

    Try replacing that stuff with the standard wp-config.php stuff. Can’t hurt, you won’t be any worse off than before!

    Thread Starter purpaula

    (@purpaula)

    neon, thanks! I still haven’t got it working however, I edited this incorrectly as you stated. I’m working on making the changes and testing.

    Thread Starter purpaula

    (@purpaula)

    I made the changes as described and it’s still not working argh… i really appreciate all of your help!

    Well, at least you’ve crossed off one potential….

    Let me get a list of crystaltech topics and post for you to look over…..

    Here: read this topic, last post. See if that looks like something you need to do but no one explained.

    https://www.ads-software.com/support/topic/40942?replies=4

    For a minute there, I thought my post was invisible. Yes, you certainly had to make the changes I mentioned to have any hope of it working at all, regardless of any other issues. ??

Viewing 15 replies - 1 through 15 (of 22 total)
  • The topic ‘Error establishing a database connection’ is closed to new replies.