phpmyadmin with no password mysqli::real_connect(): The server requested authentication method unknown to the client [caching_sha2_password] 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: The server requested authentication method unknown to the client [cachin g_sha2_password]

ALTER USER 'mysqlUsername'@'localhost' IDENTIFIED WITH mysql_native_password BY 'mysqlUsernamePassword';

Tags:

Misc Example