Home >Database >Mysql Tutorial >Grant的时候报错的解决:Access denied for user 'root'

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

WBOY
WBOYOriginal
2016-06-07 15:38:221549browse

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

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

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

|Grants forroot@localhost                                           |

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

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn