Can't select database
-
Hi guys, I am trying to set up wordpress locally but am getting the following
“We were able to connect to the database server (which means your username and password is okay) but not able to select the wp database.
Are you sure it exists?
Does the user root have permission to use the wp database?
On some systems the name of your database is prefixed with your username, so it would be like username_wp. Could that be the problem?
If you don’t know how to set up a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.”This is my config file
define(‘DB_NAME’, ‘wp’);/** MySQL database username */
define(‘DB_USER’, ‘root’);/** MySQL database password */
define(‘DB_PASSWORD’, ”);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);I have created a database in phpmyadmin with exactly the name of wp and the root user has privleges and access to this database so I’m not sure the problem is
- The topic ‘Can't select database’ is closed to new replies.