Title: Error Database Connection
Last modified: August 30, 2016

---

# Error Database Connection

 *  [RimazFlyil](https://wordpress.org/support/users/rimazflyil/)
 * (@rimazflyil)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-database-connection-3/)
 * Hi I have installed MAMP and MAMP Pro. when I create a wordpress site throught
   MAMP it works fine. but if I try to create through MAMP Pro it says ERROR database
   connection please help.

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

 *  Thread Starter [RimazFlyil](https://wordpress.org/support/users/rimazflyil/)
 * (@rimazflyil)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-database-connection-3/#post-6676421)
 * Error establishing a database connection
 * This either means that the username and password information in your wp-config.
   php file is incorrect or we can’t contact the database server at localhost. This
   could mean your host’s database server is down.
    → •Are you sure you have the
   correct username and password? → •Are you sure that you have typed the correct
   hostname? → •Are you sure that the database server is running?
 * If you’re unsure what these terms mean you should probably contact your host.
   If you still need help you can always visit the WordPress Support Forums.
 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-database-connection-3/#post-6676425)
 * have you checked all that?
    have you used phpMyAdmin to access the DB with those
   credentials?
 *  Thread Starter [RimazFlyil](https://wordpress.org/support/users/rimazflyil/)
 * (@rimazflyil)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-database-connection-3/#post-6676427)
 * Yes I Did . I have created a Database and try to install the wordpress. it always
   says error establishing the connection.
    but when i try to connect with the MAMP
   it works..
 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-database-connection-3/#post-6676550)
 * So, just to be clear – using MAMP Pro – you have used phpMyAdmin with the
    – 
   database name, – user – password – hostname that you have in the wp-contents.
   php file.
 * What version of MAMP are you using? What platform? (Mac/PC)
 *  [juggledad](https://wordpress.org/support/users/juggledad/)
 * (@juggledad)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/error-database-connection-3/#post-6676582)
 * BTW – the database you create using MAMP is NOT the same database that MAMP-PRO
   will use…they are located in two different places.

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

The topic ‘Error Database Connection’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [juggledad](https://wordpress.org/support/users/juggledad/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/error-database-connection-3/#post-6676582)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
