Title: Cannot access MySQL database
Last modified: August 18, 2016

---

# Cannot access MySQL database

 *  Resolved [kaylowe](https://wordpress.org/support/users/kaylowe/)
 * (@kaylowe)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-mysql-database/)
 * I have installed wordpress on one of my websites and no problem; I figured it
   out.
 * Now, trying to install it on another site, I cannot get past this:
 * “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 kaylowe3_wordpress 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?”
 * Of course, I HAVE created the database and I did add the prefix to my db, but
   still get this message. Whattup with that???
    Any help is appreciated.
 * Kay

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

 *  Thread Starter [kaylowe](https://wordpress.org/support/users/kaylowe/)
 * (@kaylowe)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-mysql-database/#post-368929)
 * Could someone please offer some suggestion? I am getting nowhere. I would appreciate
   help.
 * Thanks,
    Kay
 *  [Pizdin Dim](https://wordpress.org/support/users/pizdin_dim/)
 * (@pizdin_dim)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-mysql-database/#post-368930)
 * Are you sure that whatever your database username is has permissions to select,
   insert, update and delete records for the `kaylowe3_wordpress` database?
 * If you have SSH access, try connecting to the database using the MySQL client
   and see if you can access the data.
 *  Thread Starter [kaylowe](https://wordpress.org/support/users/kaylowe/)
 * (@kaylowe)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-mysql-database/#post-368931)
 * As far as SSH access, I have no idea what you’re talking about. However, as best
   I can tell my username permissions are set to “all”. (I use cpanel)
 *  [Pizdin Dim](https://wordpress.org/support/users/pizdin_dim/)
 * (@pizdin_dim)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-mysql-database/#post-368933)
 * Contact your host provider and ask them to check permissions.
 *  [richm](https://wordpress.org/support/users/richm/)
 * (@richm)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-mysql-database/#post-368934)
 * I am running into this same problem. I do have all permissions for my data base.
   When I changed my database name to include richm_wrdp1 this is the error message
   I received: Fatal error: Cannot redeclare check_admin_referer() (previously declared
   in /home/richm/public_html/wp-includes/pluggable-functions.php:228) in /home/
   richm/public_html/wp-admin/admin-functions.php on line 972
 * Then when I remove the richm_ from the database name I get the “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 wrdp1 database.” message.
 * Any help will be appreciated. Thanks!
 *  [richm](https://wordpress.org/support/users/richm/)
 * (@richm)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-mysql-database/#post-368943)
 * More info to help resolve my inability to connect to the MySQL database. This
   is the info recorded in the MySQL database on the CPanel:
 * Existing MySQL Databases
 * richm_wrdp1
    Users in wrdp1 richm_wrdp1 (Privileges: ALL PRIVILEGES)

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

The topic ‘Cannot access MySQL database’ is closed to new replies.

## Tags

 * [connection](https://wordpress.org/support/topic-tag/connection/)
 * [installation](https://wordpress.org/support/topic-tag/installation/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 6 replies
 * 3 participants
 * Last reply from: [richm](https://wordpress.org/support/users/richm/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/cannot-access-mysql-database/#post-368943)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
