Title: wordpress error with database
Last modified: August 22, 2016

---

# wordpress error with database

 *  [bakhtawar](https://wordpress.org/support/users/bakhtawar/)
 * (@bakhtawar)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/wordpress-error-with-database/)
 * hi all
 * i installed xampp server and create database in mysql as named ‘wp’ and paste
   all files in htdocs folder and also i configure file wp-config but when i try
   to connect with it shows me error .. when i open this link
    [http://localhost:8080/wp/](http://localhost:8080/wp/)
 *     ```
       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 wp database.
   
           Are you sure it exists?
           Does the user wordpress2 have permission to use the wp database?
           On some systems the name of your database is prefixed with your username, so it would be like username_wp. Could that be the problem
       ```
   
 * ?
 * mysql db image link
 * [image](http://oi58.tinypic.com/15ot06q.jpg)
 * anynone please help me

Viewing 1 replies (of 1 total)

 *  [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * (@rossmitchell)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/wordpress-error-with-database/#post-5793675)
 * Reading your error message it says it can connect to mysql, so the user “wordpress2”
   is valid and your password matches.
    Then is asks if this user has permissions
   to access this database. You did not answer this question.
 * In PHPMYADMIN there is a tab along the top labelled “privileges”, in it you need
   to grant all rights for this user on your database.
 * Otherwise maybe enabling debugging will gather more information.
    Find the WP_DEBUG
   line in your wp-config.php, comment it out and add:
 *     ```
       error_reporting(E_ALL); ini_set('display_errors', 1);
           define( 'WP_DEBUG', true);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘wordpress error with database’ is closed to new replies.

## Tags

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

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 1 reply
 * 2 participants
 * Last reply from: [RossMitchell](https://wordpress.org/support/users/rossmitchell/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/wordpress-error-with-database/#post-5793675)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
