WordPress.org

Ready to get started?Download WordPress

Forums

Yet another "Error establishing a database connection" not related to host co (5 posts)

  1. AviReem
    Member
    Posted 4 years ago #

    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.

  2. AviReem
    Member
    Posted 4 years ago #

    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...

  3. AviReem
    Member
    Posted 4 years ago #

    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.

  4. obscure
    Member
    Posted 4 years ago #

    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.

  5. obscure
    Member
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic