Mysql利用命令导入导出数据-备份和恢复
Mysql利用命令导入导出数据-备份和恢复
一、配置
可能会遇到的问题
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
解决
windows10修改方式
修改mysql配置文件my.ini,在文件中直接添加secure_file_priv="G:/"
secure_file_priv=null 不允许文件的导入导出 secure_file_priv=xxx 文件导入导出到某路径 secure_file_priv=/ 文件可 导入到任意路径
二、导入
load data infile '导入源' into table 需要导入的表 fields terminated by ',' OPTIONALLY
版权声明:
作者:lichengxin
链接:https://www.techfm.club/p/12375.html
来源:TechFM
文章版权归作者所有,未经允许请勿转载。
THE END
二维码
共有 0 条评论