Support » Installing WordPress » Yet another “Error establishing a database connection” not related to host co

  • Hi All,
    I’ve seen many posts regarding the infamous “Error establishing a database connection” Many seemed related to the hosting company and their setup or technical issues. I’m having the same problem, but not related to the hosting company as I am hosting my own server.
    I tried installing WordPress using the install.php which did not result in wp-config being created. I then edited wp-config.php manually and uploaded to the server. I know for a fact mySQL is up and running and serving other sites. I know for a fact the username / password / database name / database address are correct. I think the password in wp-config.php should probably not be in clear text, but it didn’t work even when I copied the encrypted password from the database.
    Any suggestions will be very appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Here’s a quick update. I have one running installation being served from the same server and same database. Back when I installed it, it installed without a hitch, and over its life cycle it has been updated to version 2.9.

    I copied the wp-config.php from the running installation and dropped it as is in the new installation. I expected to see the other blog when accessing the url of the new install I’m trying to get going, but got just a blank page….

    Next experiment – I edited the wp-config.php put the credentials and schema, and I’m now back to square one. Error establishing a database connection…

    One more update – I got it working !!!!
    Had to completely bypass the install process and manually edit the wp-config.php. The install process did not even create the file…
    The problem is I have no clue why it started working all of a sudden. I didn’t do anything different then the previous attempts other then change the user name and password.

    Had to completely bypass the install process and manually edit the wp-config.php. The install process did not even create the file…

    The install never creates wp_config.php. The instructions clearly state that you have to do it manually.
    http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install

    Glad its working now.

    The install never creates wp_config.php

    Doh – shows how long it is since I installed (rather than upgraded). It does of course try to create it for you.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Yet another “Error establishing a database connection” not related to host co’ is closed to new replies.