“mysqli_real_connect (): le serveur a demandé la méthode d'authentification inconnue du client [caching_sha2_password]” Réponses codées

mysqli_real_connect (): le serveur a demandé la méthode d'authentification inconnue du client [caching_sha2_password]

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

mysqli :: real_connect (): le serveur a demandé la méthode d'authentification inconnue du client [caching_sha2_password

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

php mysqli_connect: méthode d'authentification inconnue du 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
shafeeque

Réponses similaires à “mysqli_real_connect (): le serveur a demandé la méthode d'authentification inconnue du client [caching_sha2_password]”

Questions similaires à “mysqli_real_connect (): le serveur a demandé la méthode d'authentification inconnue du client [caching_sha2_password]”

Plus de réponses similaires à “mysqli_real_connect (): le serveur a demandé la méthode d'authentification inconnue du client [caching_sha2_password]” dans Sql

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code