• 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 https://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 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 ??

    Cheers

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘After Editing the php File’ is closed to new replies.