“Error establishing a database connection” – bear with me
-
I just installed MySQL on this box, and have created a wordpress database, as well as a wordpress user with the password ‘wordpress’. I know, real original 😉
create database wordpress;
grant all privileges on *.* to ‘wordpress’@’localhost’ identified by ‘wordpress’ with grant option;I verified that I can log into MySQL with -u wordpress -p wordpress, so I know the account is good. I’m also able to change the database to wordpress via ‘use database wordpress’, and I even created a table inside the database, just to make sure I’m not crazy.
Here’s the problem:
When I try to configure WordPress, I supply the following criteria:
Database name: wordpress
User Name: wordpress
Password: wordpress
Database Host: localhost (yes, it’s running on the local machine)
Table Prefix: wp_However, when I try connecting I get a message to the effect that it’s unable to establish a connection to the database. Meanwhile using the exact same credentials, I’m able to log in manually. I’ve checked typing and spelling, and this is hosted on my local box, so there’s no special hosting configuration I need to put in (e.g. with Bluehost).
Any ideas?
The topic ‘“Error establishing a database connection” – bear with me’ is closed to new replies.