数据导出时错误,mysql error 1290HY000怎么解决?

解决方法如下:1、首先,进入root。2、然后,打开mysql.conf。3、然后,在[mysqld]处添加:secure_file_priv=/tmp/mysqldata(此为自己想要保存数据的路径),最后,重启一下mysql,就可以正常导入导出了。其他方法:一般我们建议在导出和导入数据的时候指定字段之间的分隔符,如指定分隔符为'|',则在...
数据导出时错误,mysql error 1290HY000怎么解决?
解决方法如下:
1、首先,进入root。
2、然后,打开mysql.conf。
3、然后,在[mysqld]处添加:secure_file_priv=/tmp/mysqldata(此为自己想要保存数据的路径),最后,重启一下mysql,就可以正常导入导出了。

其他方法:一般我们建议在导出和导入数据的时候指定字段之间的分隔符,如指定分隔符为'|',则在空字段之间也有足够的提示:||
一、所以修改sql语句如下:
1、导出:select * from employees into outfile 'd:/file/employees.txt' fields terminated by '|';
2、导入:load data infile 'd:/file/employees.txt' replace into table employees fields terminated by '|' ;
2018-01-09
mengvlog 阅读 7 次 更新于 2025-07-21 02:32:44 我来答关注问题0
檬味博客在线解答立即免费咨询

mySQL相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部