WordPress.org

Ready to get started?Download WordPress

Forums

Can’t select database - there is no database (4 posts)

  1. bravecreatures
    Member
    Posted 8 years ago #

    I have installed MySQL, PHP and WordPress on my WinXP laptops IIS server and the components all seem to be working, but when I run http://localhost/wordpress/wp-admin/install.php I get the following message

    -----------------------
    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 database.

    Are you sure it exists?
    On some systems the name of your database is prefixed with your username, so it would be like username_wordpress. Could that be the problem?
    If you don't know how to setup a database you should contact your host. If all else fails you may find help at the WordPress Support Forums.

    ------------------------------

    I have now installed phpMyAdmin and I am able to see into the MySQL server and indeed there is no database there.

    Clearly I need to do something to set up a database in the server for WordPress to access, but I cant figure out how to do that. Can anyone help?

  2. Mark (podz)
    Support Maven
    Posted 8 years ago #

    In phpmyadmin, create a database and make sure it's name is the same as the one you have named in the wp-config.php file.

  3. bravecreatures
    Member
    Posted 8 years ago #

    ok, so I feel stupid asking this, but shouldnt there be more to it than just creating a database, with no tables etc, just a name?

  4. moshu
    Member
    Posted 8 years ago #

    Nope. The install.php script will create all the necessary tables if it finds the db.

Topic Closed

This topic has been closed to new replies.

About this Topic