Answers for "php mysqli_connect: authentication method unknown to the client [caching_sha2_password]"

0

php mysqli_connect: authentication method unknown to the client [caching_sha2_password]

I solve this by SQL command:

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

which is referenced by https://dev.mysql.com/doc/refman/8.0/en/alter-user.html

if you are creating new user

 CREATE USER 'jeffrey'@'localhost' IDENTIFIED WITH mysql_native_password BY 'passwor
Posted by: Guest on January-25-2022

Code answers related to "php mysqli_connect: authentication method unknown to the client [caching_sha2_password]"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language