mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]
snippet in sql

mysqli_real_connect(): The server requested authentication method unknown to the client [caching_sha2_password]

user252

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';