Support » Installing WordPress » Can’t select database – there is no database

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Mark (podz)


    Support Maven

    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.

    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?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Can’t select database – there is no database’ is closed to new replies.