Reputation: 11
I have an issue with connection to MySQL database.
Internet says that error Unable to load authentication plugin 'caching_sha2_password'
can be fixed with ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123';
.
The issue is that this command doesn't work. ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '123';
also doesn't work.
First command affects 0 rows and has an error 1 factor authentication method does not match against authentication policy. Please refer @@authentication_policy system variable.
, second one returns an error Operation ALTER USER failed
. Of course I'm replacing 123
with my real admin password.
I'm absolutely out of ideas, I hope I can get some clues why this command doesn't work.
Edit
I think the only solution is to uninstall newest MySQL version and install an older one that actually works. Topic closed.
Upvotes: 1
Views: 1176