Yet another “Cannot select database” problem
-
Like the countless other posts here and around the web, I’ve run into the Cannot select database wall.
I’m doing a local install using XAMPP.
- Apache is running
- MySQL is running
- The database wordpress has been created
- Username root on localhost has ALL PRIVILEGES
- There is a wp-config-sample.php file in the wordpress folder
My specific error is this:
Cannot select database
The database server could be connected to (which means your username and password is okay) but the?database could not be selected.
- Are you sure it exists?
- Does the user
root
have permission to use the database? - On some systems the name of your database is prefixed with your username, so it would be like
username_
. Could that be the problem?
To answer these 3 points:
- The database exists
- The user root has ALL PRIVILEGES
- The database has no prefix. It’s “wordpress”
I’ve read countless posts about this problem, none of the suggestions have worked. And a lot of them suggested renaming the wp-config-sample.php file to wp-config.php and entering my credentials, but the installer REQUIRES the sample file, not the completed file.
This is my first local install and I’m a db noob, so any help is greatly appreciated!
- You must be logged in to reply to this topic.