When trying to access phpmyadmin on my localhost, I get these errors:
Cannot log in to the MySQL server
mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
mysqli_real_connect(): (HY000/2054): The server requested authentication method unknown to the client
After research, I understood that I need to change the authentication method for my user's password. Which I did as per this link. I also made sure that the info in the config.inc.php file are correct. Yet, I'm still getting the same error.
I can't seem to understand:
- What is the current authentication method for MySQL?
- What should it be?
- How do I change it? And is it change for the whole MySQL configuration or for each user separately?
Update I noticed two things:
- There is "password" field in the user table, but an "authentication_string"
- The length of the "authentication_string" is 41. Although I set the password to 9 characters and log in using them.
- The "plugin"'s value is "caching_sha2_password"
- macOS High Sierra 10.13.3
- Apache 2.4.28
- PHPMyAdmin 4.8.0.1
- MySQL 8.0.11