e server requested authentication method unknown to the client [caching_sha2_password] in code example
Example 1: mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';
Example 2: Unable to load authentication plugin 'caching_sha2_password'. dbeaver
ALTER USER 'student'@'localhost' IDENTIFIED WITH mysql_native_password BY 'pass123';