Title: Database error
Last modified: August 21, 2016

---

# Database error

 *  Resolved [fkieffer](https://wordpress.org/support/users/fkieffer/)
 * (@fkieffer)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/database-error-138/)
 * After resetting the language to default english ( “define(‘WPLANG’, ‘fr_FR’);”
   to “define(‘WPLANG’, ”);” ) I get the message: “Error establishing a database
   connection”.
    Switching back to french ( define(‘WPLANG’, ‘fr_FR’); ) gives me
   the same error message in french.
 * Thanks for any help

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

 *  [David Sword](https://wordpress.org/support/users/davidsword/)
 * (@davidsword)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/database-error-138/#post-4827221)
 * some php must of messed up in your editing, causing the script to fail which 
   would fail the database as that’s where the connection details are from. make
   the line:
 *     ```
       define('WPLANG', '');
       ```
   
 * notice the “`;`” are periods at the end of a line/function in the code.
 *  [David Sword](https://wordpress.org/support/users/davidsword/)
 * (@davidsword)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/database-error-138/#post-4827222)
 * (btw put your code between back-tics “`” to make your code a mono font instead
   of using brackets)
 *  Thread Starter [fkieffer](https://wordpress.org/support/users/fkieffer/)
 * (@fkieffer)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/database-error-138/#post-4827315)
 * Thank you all, the problem is solved. I made a silly mistake since I forgot to
   enter the database password when uploading config.php from my local xampp installation.
   Sorry

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

The topic ‘Database error’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [fkieffer](https://wordpress.org/support/users/fkieffer/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/database-error-138/#post-4827315)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
