Title: MYSQL installed correctly?
Last modified: March 13, 2017

---

# MYSQL installed correctly?

 *  [usererror](https://wordpress.org/support/users/usererror/)
 * (@usererror)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/mysql-installed-correctly/)
 * Hi,
    I installed LAMP but get the browser localhost “Error establishing a database
   connection”.
 * I can log into the database from the command line, so the credentials are correct
   and these match the WP config.php file.
 * I’m wondering if I may previously have installed MYSQ and it is not where it 
   is expected to be by Apache or whatever?
 * Is that a possibility? How can I tell?
    Where would I expect to find my WordPress
   MYSQL database? How can I troubleshoot this? I have spent all of today trying
   things from the web, but still no success. Thanks
    -  This topic was modified 9 years, 3 months ago by [usererror](https://wordpress.org/support/users/usererror/).
      Reason: accidentally hit enter/return

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

 *  [luckychingi](https://wordpress.org/support/users/luckychingi/)
 * (@luckychingi)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/mysql-installed-correctly/#post-8908566)
 * Recheck the wp-config and check grants on the database
 * Use the MySQL workbench
    [https://dev.mysql.com/downloads/workbench/](https://dev.mysql.com/downloads/workbench/)
 *  Thread Starter [usererror](https://wordpress.org/support/users/usererror/)
 * (@usererror)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/mysql-installed-correctly/#post-8909700)
 * Thanks, as far as I can tell, wp-config is correct – I connected with the db 
   with mysql workbench using the same credentials.
 * It appears that the permissions hadn’t been granted, but even after granting 
   full admin rights to the user, it still won’t connect.
 * Localhost is looking for (or can’t access the db -I can access the db through
   the command line & mysql workbench, so why can’t localhost?). How can I tell 
   where is it looking?
    Thanks

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

The topic ‘MYSQL installed correctly?’ is closed to new replies.

## Tags

 * [linux](https://wordpress.org/support/topic-tag/linux/)
 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [usererror](https://wordpress.org/support/users/usererror/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/mysql-installed-correctly/#post-8909700)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
