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。
然后再次执行授权,问题解决。

原文地址:https://blog.51cto.com/lovejxs/2437110

时间: 2024-10-11 08:36:05

MySQL关于ERROR 1290 (HY000)报错的相关文章

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

今天在学习MySQL时候,想要将文本文件的数据导入到数据库中,却发现一直报错,换了导入文本的路径也还是同样的错误,错误显示ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement. 然后在网上找解决办法,找的方法在Linux 下也不怎么好用,最后找到了解决Linux下MySQL文件导入出错的方法 出错的原因是因为在My

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

转自:http://www.cnblogs.com/iosdev/archive/2013/07/15/3190431.html mysql 配置文件目录:/etc/my.cnf root 密码为空的时候配置文件中下面这句: skip-grant-tables GRANT ALL PRIVILEGES ON *.* TO IDENTIFIED BY '123' WITH GRANT OPTION; 执行这句时候错误: ERROR 1290 (HY000): The MySQL server is

mysql ERROR 1290 (HY000):

ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot exe 在Mysql集群中创建用户时.出现如下错误! mysql> create user 'testuse'@'localhost' identified by '111111';ERROR 1290 (HY000): The MySQL server is running with the --ski

升级 MySQL 至 5.5,报错 [ERROR] Plugin 'InnoDB' init function returned error

MySQL 从 5.5 升级到 5.6,启动时报错: [ERROR] Plugin 'InnoDB' init function returned error. [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. [ERROR] Unknown/unsupported storage engine: InnoDB [ERROR] Aborting 原因:主要是没有正常关闭 mysqld 服务的情况下,对数据库参数进行改

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

在Mysql集群中创建用户时.出现如下错误! mysql> create user 'testuse'@'localhost' identified by '111111'; ERROR 1290 (HY000): The MySQL server is running with the --skip-grant-tables option so it cannot execute this statement 解决办法: 在命令行输入:mysql> flush privileges;

mysql 导出数据到文件数据异常 ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 首先输入下面下面命令查看 show global variables like '%secure%'; 查询secure_file_priv 我的当时为null所以要修改: 修改方法:

MySQL导出数据到文件报错

执行如下语句: mysql> select * from users into outfile "F:\Develop\MySQL57\Uploads\users.txt" lines terminated by "\r\n"; 报错信息:ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this sta

MYSQL服务 ERROR 2003 (HY000): Can't connect to MySQL server on "********" 的问题解决

今早来到公司发现昨晚还好好的数据库跑不起来了,这对于本是C语言主编的本人刚刚操作后台来说未免一头雾水. 而且该问题的出现大多是因为一夜突发毫无征兆,或者因为mysql重装.而且网上的题解也有好多答复重装,真是... 具体问题如下: 想必看到这个对于刚刚上手操作mysql的朋友来说都回去查看一下10061这是个什么错误吧. 可恰巧,本人用的是windows系统,网上大多题解都是linux操作环境下的(说到这里,作为程序猿真应该研究一下linux,那也得等现在的项目完毕啊). 像my.cnf配置文件

native 链接 mysql 8.0以上版本 报错2059

MySQL版本是8.0.4  由于新版本的MySQL新特性导致的. mysql> select Host,User,plugin from mysql.user; +-----------+------------------+-----------------------+ | Host | User | plugin | +-----------+------------------+-----------------------+ | localhost | mysql.infoschem