Reputation: 153
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:
Update I noticed two things:
Upvotes: 1
Views: 6034
Reputation: 12412
It seems like MySQL changed their authentication style between releases 8.0.4 and 8.0.11. I don't really understand why such a big change would be implemented in a minor release, breaking semantic versioning, but nonetheless here we are.
There are already a PHP bug report and a phpMyAdmin bug report about this.
A previous Stackoverflow question about this came with an answer that suggested making some changes to the MySQL configuration and modifying a user account...while I haven't actually tested this and don't really endorse the changes it suggests, it seems to be the only way to get MySQL 8.0.11 to work with PHP/phpMyAdmin at this time.
Upvotes: 1