After Editing the php File
-
Hey Peeps,
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 */
define(‘DB_NAME’, localhost_‘wordpress’);/** 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’);/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);Now the error message I am getting looks like this:
Can’t select databaseWe 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 🙂
Cheers
-
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.
http://kb.mediatemple.net/questions/788/HOWTO%3A+GRANT+privileges+in+MySQL#dv
http://dev.mysql.com/doc/refman/5.1/en/adding-users.html
http://dev.mysql.com/doc/refman/5.1/en/grant.htmldefine('DB_NAME', localhost_'wordpress'); define('DB_USER', 'root);Should be:
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
Is everything working now?
The topic ‘After Editing the php File’ is closed to new replies.