Support » Fixing WordPress » Database error

  • Resolved fkieffer

    (@fkieffer)


    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)
  • 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.

    (btw put your code between back-tics “`” to make your code a mono font instead of using brackets)

    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.