Home >Database >Mysql Tutorial >Grant的时候报错的解决:Access denied for user 'root'
mysqlSHOWGRANTSFOR'root'@'localhost'; --------------------------------------------------------------------- |Grantsforroot@localhost| --------------------------------------------------------------------- |GRANTALLPRIVILEGESON*.*TO'root'@'l
mysql>SHOW GRANTS FOR'root'@'localhost';
+---------------------------------------------------------------------+
|Grants forroot@localhost |
+---------------------------------------------------------------------+
|GRANTALLPRIVILEGES ON*.*TO'root'@'localhost'WITHGRANTOPTION