• So I am having an issue connecting to my database. This is a new install.

    I have spun up two machines. One is the web server, and one is the database backend. They can connect via a private network.

    I can connect to the wordpress database (via the MySQL client) from my web server using the username/password I have configured for the wordpress database. However when I enter this information into the install.php script, it just immediately says that there was a problem connecting to the database.

    Am I missing something here?
    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    – double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur. -Then check that you don’t need to change the database host from “localhost” to something else. You can get that info from your hosting provider.
    -Check you have actually created a database with the same database name as is in your wp-config.php file.
    -Last, but not least, if all that information is correct your database probably has a problem with it, and you may need to contact your hosting provider.

    There are also many threads on this topic on these forums: http://wordpress.org/search/Error+establishing+a+database+connection?forums=1

    I find that I tend to have inexplicable mysql errors on almost every install. Sometimes you just have to go ahead and remake the database and redo all the connections, and for some reason it just works out.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘DB connection’ is closed to new replies.