Quantcast
Channel: Topic Tag: MySQL | WordPress.org
Viewing all articles
Browse latest Browse all 5527

Todd on "Database Connection Error After Creating DB"

$
0
0

Having a strange issue here.

Before I make my wordpress database, accessing the website URL shows "Error establish Database connection". If I go to /wp-admin, it give me a message saying:

"Can't select database. We were able to connect to the database server, but not able to select the NAME-OF-DB-IN-WP.CONFIG database. Are you sure it exists? Does the user have permission?..."

After I create the DB and give the user in wp-config.php permissions (I have double checked this by logging into the server with the user and making changes), accessing the website URL just shows a blank page. If I got to /wp-admin, it gives me a message saying:

"Error establishing a database connection. The either means the the username and password information in your wp-config.php file is incorrect or we can't connect to the database server at localhost. This could mean your host's database server is down."

1.) It seems like I can connect to the server just fine before making the specific DB (The error message actually says 'your username password is correct'), but I can't connect after I make the DB?

2.) In the second error, it says "localhost" instead of the actual hostname written in wp-config.php. Is that a part of this, or just Wordpress not handling the file/message well?


Viewing all articles
Browse latest Browse all 5527

Trending Articles