WordPress.org

Support

Support » Installation » Can’t select database

Can’t select database

  • I keep getting this error message. I’m using cpanel and I have used the “prefix” and done everything this site suggests. Not sure what I should do now!

Viewing 6 replies - 1 through 6 (of 6 total)
  • What error message?

    the error message is “Can’t Select Database”

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

    * Are you sure it exists?
    * Does the user ohym_derrick have permission to use the ohym_wordpress database?
    * 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?

    Look at this video where I demo installing WP through Cpanel…maybe it will help.

    dup…sorry…connection problems.

    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.

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