• Hi GUys, I have been looking an answer to the following error but couldn’t find any. Need help
    thanks..

    Error :

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

    * Are you sure it exists?
    * Does the user rahulkhadaliya have permission to use the blog database?
    * On some systems the name of your database is prefixed with your username, so it would be like username_blog. Could that be the problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • either the database name in wp-config.php is not correct or your user was not granted ALL permissions

    I was having this problem as well when I was moving my site to a new domain. Since the domain name was different, the database name was different as well with my hosting company.

    However, even though I changed the database name in the wp-config.php file, when I backed up my database from my original site (site1.com), I downloaded the zip file site1_wordpress.sql.

    But I forgot when I imported the file through PHPMyAdmin to the new site to change the name of the file to the name of the new database/site (site2.com). So the database file I imported should have been site2_wordpress.sql.

    I don’t know if that helps anyone, but I thought I’d post it just in case.

    I’m having the same problem with mine. I’m using GoDaddy. Went in and created the MySQL database, gave myself all of the permissions… edited everything properly in the config.php file and now I’m all out of clues as to next steps. Any other advice would be greatly appreciated.

    How would I know if I didn’t grant myself ALL permissions?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can’t select database’ is closed to new replies.