“Client unterstützt das vom Server angeforderte Authentifizierungsprotokoll nicht. Erwägen Sie, den MySQL -Client zu aktualisieren” Code-Antworten

Client unterstützt das vom Server angeforderte Authentifizierungsprotokoll nicht. Erwägen Sie, den MySQL -Client zu aktualisieren, SQLState: 08004,,

$ mysql -u root -p
Enter password: (enter your root password)

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'your_new_password';
mysql> FLUSH PRIVILEGES;
mysql> quit
Naughty Narwhal

Client unterstützt das vom Server angeforderte Authentifizierungsprotokoll nicht. Erwägen Sie, den MySQL -Client zu aktualisieren

# Run this line to unistall mysql and install mysql2
npm un mysql && npm i mysql2
# then switch the name of your import in your node file
#const mysql = require("mysql2");
#mysql2 uses the updated form of authentication
# To learn more read this stackoverflow answer: https://stackoverflow.com/a/56509065/13776398
Just Make It Global

Client unterstützt das vom Server angeforderte Authentifizierungsprotokoll nicht. Erwägen Sie, den MySQL -Client zu aktualisieren

$ mysql -u root -p
Enter password: (enter your password)

mysql> ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY 'PASSWORD';
mysql> FLUSH PRIVILEGES;
mysql> quit
liriosydelirios

MySQL Client unterstützt das vom Server angeforderte Authentifizierungsprotokoll nicht. Erwägen Sie, den MySQL -Client zu aktualisieren

/* First run this */

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


/* Where root as your user localhost as your URL and password as your password */

/* Then flush all prvilates */

flush privileges;
Henry Obiaraije

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen