欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

Grant的时候报错的解决:Access denied for user 'root'

程序员文章站 2022-05-12 07:53:33
...

mysqlSHOWGRANTSFOR'root'@'localhost'; --------------------------------------------------------------------- |Grantsforroot@localhost| --------------------------------------------------------------------- |GRANTALLPRIVILEGESON*.*TO'root'@'l

mysql>SHOW GRANTS FOR'root'@'localhost';

+---------------------------------------------------------------------+

|Grants forroot@localhost |

+---------------------------------------------------------------------+

|GRANTALLPRIVILEGES ON*.*TO'root'@'localhost'WITHGRANTOPTION