Can't Select Database
-
I am getting the following error:
We were able to connect to the database server (which means your username and password is okay) but not able to select the ‘dbname’ database.
Are you sure it exists?
Does the user dbuser have permission to use the ‘cemeteries’ database?
On some systems the name of your database is prefixed with your username, so it would be like username_‘dbname’. Could that be the problem?I have read many messages on these boards about this. I have watch a couple of youtube videos.
I am sure that the database exists. I can connect to it using the same database name, username and password in NaviCat, PHPMyAdmin, and SequelPro. If all three of these programs can connect to the MySQL database and create tables, why can’t the WordPress install script?
I have tried many different versions of the wp-config parameters. I’ve appended the database name with the username, tried “localhost” for the server name, etc.
Clearly the the following parameters are correct;
DB_USER
DB_PASSWORD
DB_HOSTBecause the error message says the WordPress installer can connect. The only thing that can be wrong are the
DB_NAME
But, I’m telling ya, the three other programs (NaviCat, MyPHPAdmin, and SequelPro) all connect with the database name I’m using.
The other possibility is that the permissions for my user are lacking. Again, those other programs connect and can manipulate the database using the login I am providing to wp-config.
I’ve installed WordPress on two different local machines, and I’ve been using MySQL databases with my hosting company (Intermedia) for a long time. I don’t understand where my mistake is.
- The topic ‘Can't Select Database’ is closed to new replies.