• Followed the detailed instructions from the wordpress readme file to configure a new wordpress database using phpMyAdmin. I also created an appropriate user account and granted it full privileges on the wordpress database. I then edited my wp-config file with the same information I had just set up on the MySQL database, uploaded all the files, and then browsed to install.php from my web browser. The Error message contained the following information:

    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.

    * Are you sure you have the correct username and password?
    * Are you sure that you have typed the correct hostname?
    * Are you sure that the database server is running?

    If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.

    I have double checked, reset and checked again my password, username, and database name yet the result is always this same error message. I have also made sure that my PHP and MySQL version meet the requirements (I have PHP 5.2.10 and MySQL 4.1.22). I am not sure where to go from here and I am hoping for some guidance or ideas. Thanks in advance for any help.

Viewing 11 replies - 1 through 11 (of 11 total)
  • your host has to be the correct MYSQL hosts IP and make sure your database name is correct if for instance its xxxxxx_xxxxx you just put in the part after _ if that doesnt work try putting in both parts xxxx_xxxx

    Same thing with me. I have several blogs and they are all down…(godaddy)
    Im on the ph with them now
    Error establishing a database connection

    Godaddy just told me that the database will be down up to 24 hours.

    He also said that there is work around for this,… but you will have to call them for that…

    lesko

    Son of a . . . did they say why? Does this happen with them often?

    No, he just said one of the DB is down. I have used them for over 10 years and this is the first time I have ever had any issues.

    If you want to call them, he told me there is a work around for this if you can get into the back end. Give it a shot..

    I just wish there was some sort of parked page so clients and customers dont look at a blank screen…

    This is not good. 99.5% uptime and as soon as I start pushing my site up the DB goes down?? Where’s the backup?

    Thread Starter hdnfmc

    (@hdnfmc)

    My issue has nothing to do with go-daddy, they are not my web hosting service. This is just a brand new install that I am having problems with since yesterday.

    HDNFMC….try deleting your wpconfig file AND your .htaccess files. This will let you start over fresh.
    If you used “copy and paste” to enter the long database host address make sure there isn’t an extra space before the name after you paste. This happens often and is easily overlooked but makes it impossible for wp to connect to your database.

    Thread Starter hdnfmc

    (@hdnfmc)

    Found the following error in my error_log file on wordpress. Could this be related to the problem I’m having?

    [19-Mar-2010 16:25:59] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/fileinfo.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20060613/fileinfo.so: cannot open shared object file: No such file or directory in Unknown on line 0

    Thread Starter hdnfmc

    (@hdnfmc)

    Well, it looks like my inability to connect to the MySQL database is definitely related to the line in the error_log that I mentioned in my last post.

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