Support » Installing WordPress » Installation Problem/Wrong Database

  • First of all, be kind with me, I’m a newbie.

    When installing a WordPress 4.0 on my host, I crated a new database first, but when I try to do an install, I get this message;

    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

    The database I created is at;

    How do I change that?

    Because I use GoDaddy, I set the wp-config.php to;

    define(‘DB_HOST’, ‘’);

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    It might be due to your mismatched database name in wp-config.php file and database created in phpmyadmin

    Because I use GoDaddy

    If you have a Linux with cPanel hosting account at GD, then you are “trying too hard” 🙂

    When you created your database first, you would have had to give it a name (hopefully with no spaces in it), a password of your choosing, and then assign a user to this database and grant all privileges. The host name is localhost; do NOT enter the IP.

    These are the values you use when either editing the wp-config.php file or if you used the Create a Configuration File button during the install process.

    Remove or edit your ip address and replace it with At the moment you are revealing your real ip and the configuration profile of your wordpress installation. Try and give the bad guys more questions to answer.

    As for “The database I created is at; How do I change that?” – you will need to access your wordpress files and look for a file called wp-config.php and make changes there. Do you have one click installation on hosting account?.


    I am also facing somewhat similar issue. I tried to install WordPress on the subdomain It’s not working and the following error results:

    “500 – Internal server error.
    There is a problem with the resource you are looking for, and it cannot be displayed.”

    However, just as a try i installed WordPress on the main domain and surprisingly, it is working.

    I wonder if anybody would mind helping me with such issue. I am using Godaddy’s Window hosting package by the way.

    Thanks for consideration.

    @ ict 2conserve – I can see you solved it 🙂 – happy blogging

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Installation Problem/Wrong Database’ is closed to new replies.