집 >데이터 베이스 >MySQL 튜토리얼 >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