Mysql
 SQL >> Datenbank >  >> RDS >> Mysql

Access Denied für root@localhost in MySQL lösen

Ein MySQL-Benutzer ist eine Kombination aus Benutzer und Host. Lege die benötigten root-Einträge an, vergib Rechte und Passwörter und entferne unsichere Wildcard-Benutzer. root sollte nur für Wartung genutzt werden.

CREATE USER 'root'@'localhost' IDENTIFIED BY 'NewPassword';
GRANT ALL ON *.* TO 'root'@'localhost';