mysql错误:`The MySQL server is running with the --skip-grant-tables option so it cannot execute this s

来源:互联网 发布:物流单打印软件 编辑:程序博客网 时间:2024/06/06 09:01

mysql错误:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解决方法

Mysql关系型数据库管理系统
MySQL是一个开放源码的小型关联式数据库管理系统,开发者为瑞典MySQL AB公司。MySQL被广泛地应用在Internet上的中小型网站中。由于其体积小、速度快、总体拥有成本低,尤其是开放源码这一特点,许多中小型网站为了降低网站总体拥有成本而选择了MySQL作为网站数据库。
本文为大家讲解的是mysql错误:The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement解决方法,感兴趣的同学参考下。

错误描述:

mysql> grant all on cactidb.* to dbuser@'localhost' identified by '123';ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement

解决方法:

先刷新一下权限表。

mysql> flush privileges;Query OK, 0 rows affected (0.01 sec)mysql> grant all on cactidb.* to dbuser@'localhost' identified by '123';Query OK, 0 rows affected (0.00 sec)

http://www.phperz.com/article/14/1208/39952.html

0 0