mysqli::real_connect(): The server requested authentication method unknown to the client [caching_sha2_password] myphpAdmin code example
Example: 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';