MySQL关于ERROR 1290 (HY000)报错

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MySQL关于ERROR 1290 (HY000)报错相关的知识,希望对你有一定的参考价值。

一个问题纠结很久,反复确认语法问题。但是后来网上搜了一下,茅塞顿开。特此总结一下。

mysql> grant select,insert,update,delete on *.* to ‘root‘@‘%‘;
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.00 sec)

mysql> 
mysql> 
mysql> 
mysql> grant select,insert,update,delete on *.* to ‘root‘@‘%‘;
Query OK, 0 rows affected, 1 warning (0.00 sec)

mysql> grant all on *.* to ‘root‘@‘%‘;
Query OK, 0 rows affected (0.00 sec)

解释说明:
对root用户进行授权远程登录,然后发现报错ERROR 1290 (HY000)
然后进行flush privileges。
然后再次执行授权,问题解决。

以上是关于MySQL关于ERROR 1290 (HY000)报错的主要内容,如果未能解决你的问题,请参考以下文章

mysql 导出数据到文件数据异常 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv op

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

ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot exec

mysql-修改密码(error-1290 (HY000): The MySQL server is running with the --skip-grant-tables option so)

mysql-修改密码(error-1290 (HY000): The MySQL server is running with the --skip-grant-tables option so)

MYSQL导入数据出现ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it