Error message not in English
Posted by: wampfil (125.212.125.---)
Date: September 18, 2014 10:24PM

I try to use PDOException to handle my errors when connecting to the database. But I am getting this error message which I believe is not in english? "SQLSTATE[HY000] [1045] Accès refusé pour l'utilisateur: 'user'@'@localhost' (mot de passe: OUI)" Is this normal? Or how do I change it to english. I am using the latest WAMP 2.5 and MySQL 5.6. The charset of my database is UTF-8 if it is relevant.

Any response would be greatly appreciated.

Options: ReplyQuote
Re: Error message not in English
Posted by: Otomatic (Moderator)
Date: September 19, 2014 09:29AM

Hi,

Wampmanager->MySQL->my.ini (to be sure to edit the correct file)
Replace:
lc-messages=fr_FR
by
lc-messages=en_GB
or
lc-messages=en_US

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: Error message not in English
Posted by: wampfil (203.215.122.---)
Date: September 19, 2014 02:44PM

Hello. It's fixed now thanks. But can you tell me why the default language isn't english? Just curious your choice if you answer this.

Options: ReplyQuote
Re: Error message not in English
Posted by: Otomatic (Moderator)
Date: September 19, 2014 02:51PM

Hi,

Because Wampserver is French.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.