• Hello – I am having the classic “error establishing a database connection” problem! I am trying to move my site from a local MAMP server to a live server and am pulling my hair out. Here is the site now: https://www.patty-bakes.com. I see the same error on https://www.patty-bakes.com/wp-admin. I set up an MySQL database in my GoDaddy account and it gave me this information:

    Database name and username: hmistler
    Friendly Name: wordpress
    Admin URL (phpMyAdmin): https://p3nlmysqladm002.secureserver.net/grid55/203
    MySQL version: 5.5 (Direct access not allowed)
    Status: Setup
    Hostname: hmistler.db.11342499.hostedresource.com

    Lastly, my wp-config.php looks like this:

    // ** MySQL settings – You can get this info from your web host ** //
    /** The name of the database for WordPress */
    define(‘DB_NAME’, ‘hmistler’);

    /** MySQL database username */
    define(‘DB_USER’, ‘hmistler’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘(I typed out my password here)’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘50.62.109.1’);

    /** Database Charset to use in creating database tables. */
    define(‘DB_CHARSET’, ‘utf8’);

    /** The Database Collate type. Don’t change this if in doubt. */
    define(‘DB_COLLATE’, ”);

    I really have NO CLUE what I’m doing wrong, but I feel like I’m so close since at least I get this error message now and not some of the other more serious ones, haha. Please help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Check with your hosting company about this. The most common cause is using the IP address instead of ‘localhost’, or the other way around. I don’t use GoDaddy as a host, so I’m not sure what their database setup is like, but they’ll be able to tell you what you need to do.

    Host name should be this -> hmistler.db.11342499.hostedresource.com

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