PHP mysqli_connect: authentication method unknown to the client [caching_sha2_password]
Open a File C:\ProgramData\MySQL\MySQL Server 8.0\my.ini and Edit like this # The default authentication plugin to be used when connecting to the server #default_authentication_plugin=caching_sha2_password default-authentication-plugin=mysql_native_password