After Editing the php File
I’m trying to install WordPress on my XAMPP server and I’ve been doing great so far, but after I have edited the info on the wp-config.php file I get an error message when I try to access http://localhost/wordpress/wp-admin/install.php.
The text I edited looks like this:
// ** MySQL settings – You can get this info from your web host ** //
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
/** Database Charset to use in creating database tables. */
/** The Database Collate type. Don’t change this if in doubt. */
Now the error message I am getting looks like this:
Can’t select database
We were able to connect to the database server (which means your username and password is okay) but not able to select the localhost_‘wordpress’ database.
Are you sure it exists?
Does the user ‘root have permission to use the localhost_‘wordpress’ database?
On some systems the name of your database is prefixed with your username, so it would be like username_localhost_‘wordpress’. 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.
Any help would be greatly appreciated 🙂
The most likely cause of this is that you haven’t created the databasae yet. If you have, then you haven’t set up the permissions in MySQL to allow the user to access the database.
How to do that is a bit beyond the scope of this forum, but you might be able ot look here to find some help with that.
define('DB_NAME', localhost_'wordpress'); define('DB_USER', 'root);
define('DB_NAME', 'localhost_wordpress'); define('DB_USER', 'root');
And the name of the database you created in phpMyAdmin also needs to be called “localhost_wordpress,” not simply “wordpress.”
thank you I will give that a try znuffin and if that doesn’t work I will give what you said a try catacaustic
- The topic ‘After Editing the php File’ is closed to new replies.