After Editing the php File (5 posts)

  1. AutisticInspirationz
    Posted 2 years ago #

    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 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 :)


  2. catacaustic
    very awesome
    Posted 2 years ago #

    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.



  3. Josh
    Posted 2 years ago #

    define('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."

  4. AutisticInspirationz
    Posted 2 years ago #

    thank you I will give that a try znuffin and if that doesn't work I will give what you said a try catacaustic

  5. Josh
    Posted 2 years ago #

    Is everything working now?

Topic Closed

This topic has been closed to new replies.

About this Topic