0

*******\wamp\www\laravel>php artisan migrate:install

[PDOException] SQLSTATE[HY000] [1045] AccΦs refusΘ pour l'utilisateur: 'homestead'@'@local host' (mot de passe: OUI)

Can anyone please kindly tell me how to change the language to English? It would really help me in the future. Thank you in advance.

Chewpers
  • 2,430
  • 5
  • 23
  • 30
Mackinley
  • 107
  • 2
  • 3
  • 7

2 Answers2

4

To change the error message language in MySQL server, you should first login to MySQL server with mysql -u homestead -p, the default password for user 'homestead' should be 'secret' unless you changed it. After you login, set the language to english by executing SET lc_messages = 'en_US';.

salamas
  • 515
  • 6
  • 13
0

It seems you are using Wamp server's mySQL..

  1. Left click wamp server icon
  2. hover MySQL
  3. left click my.ini

enter image description here

On the text editor,find this line:

lc-messages=fr_FR

And change to:

lc-messages=en_US

After saving the changes,you need to restart Mysql service.

enter image description here

By the way the error you get means:

 access denied for user: homestead'@'@localhost'(password: yes)

Be sure you correctly configure laravel to use on wamp-server and your database settings are correct..

you may need to check both app/config/databese.php and .env file in your root directory..

https://laravel.com/docs/5.0/configuration#environment-configuration

ern
  • 71
  • 10