I just installed my dev environnement.
When I try to connect mysql db via SequelPro, I get:
Authentication plugin 'caching_sha2_password' cannot be loaded
As stated in: Authentication plugin 'caching_sha2_password' cannot be loaded, I ran:
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';
Then I could connect my DB via SequelPro
But when I execute Laravel Command:
php artisan migrate
I get:
PDOException::("PDO::__construct(): Unexpected server respose while doing caching_sha2 auth: 109")
What should I do now ?
PD: I use Laravel Valet on Mac, and Laravel 5.6.
You must alter use in your laravel app via shell with mysql command
ALTER USER 'user'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'your password';
ALTER USER 'user'@'%' IDENTIFIED WITH caching_sha2_password BY 'your password';
the problem is good for safety, mybe.
but I use the command solve the problem:
root
@localhost
IDENTIFIED WITH caching_sha2_password BY 'password';Hope you will not see this error again.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With