1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > MYSQL导入数据出现ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it

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

时间:2020-08-14 05:52:52

相关推荐

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

在mysql中文件导入(导出)出现错误:

1、查看secure_file_priv 对应的值

mysql> show global variables like '%secure_file_priv%';+------------------+-------+| Variable_name | Value |+------------------+-------+| secure_file_priv | NULL |+------------------+-------+1 row in set (0.00 sec)

2、secure_file_priv 的值,默认为NULL,表示限制不能导入导出。

打开my.ini 或 f 配置文件,加入以下代码:

secure_file_priv=''

3、上面这步配置完了你们就命令行重新启动下MySQL(关掉cmd窗口重新以管理员的身份打开)

#命令行启动netstartmysql#命令行关闭netstopmysql

如下图:

4、进入数据库再次运行即可成功

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。