MySQL Error List

2018-11-30  本文已影响0人  xieyangxuejun

问题汇总

更新mysql root密码

> mysql
mysql> use mysql
Database changed
mysql> update mysql.user set authentication_string=password('root') where user='root';
Query OK, 1 row affected, 1 warning (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 1

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

首先,需要刷新一下权限管理

mysql> flush privileges;
# 然后在执行就行了
mysql> create user 'web'@'localhost' identified by 'xxx';

mysql> grant all on xinhua.* to 'web'@'localhost';
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
修改密码

mysql> alter user 'web'@'localhost' identified by 'web';
上一篇 下一篇

猜你喜欢

热点阅读