Support » Installing WordPress » unable to connect to the database

  • iam using wamp server . and making database in mysql using phpMyadmin.

    after extracting wordpress , iam having problems in making the wp-config.php file

    it says

    can’t select database

    please help me out

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator t-p

    (@t-p)

    – double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur.

    -Then check that you don’t need to change the database host from “localhost” to something else.

    -Check you have actually created a database with the same database name as is in your wp-config.php file.

    There are also many threads on this topic on these forums: http://wordpress.org/search/Error+establishing+a+database+connection?forums=1

    @t-p

    i checked the settings several times

    the db name is: photography
    username is : admin
    password : //blank
    db host : localhost

    still its giving error..

    help me out

    Moderator t-p

    (@t-p)

    see if info in these threads can help

    From the sound of it, the most likely problem is that you have the database set up, and the user set up, but the user doesn’t have any access permissions set on that database. In phpMyAdmin you can check what permissions each user has, so I’d suggest having a look in there even just to double-check the settings.

    – double check your wp-config.php file settings for the database name, database username and database password. This is where most errors occur.

    – Then check that you don’t need to change the database host from “localhost” to something else. You can get that info from your hosting provider.

    – Check you have actually created a database with the same database name as is in your wp-config.php file.

    In the config file look at hostname.

    If it still “localhost” try changing this to the IP address of the database server.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘unable to connect to the database’ is closed to new replies.