mysql load data infile 报错 1290 处理方法

mysql load data infile 命令导入数据报错"16:06:13 load data infile “/var/lib/mysql/test/employee.csv” into table emp fields terminated by ‘,’ ignore 1 lines Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement 0.000 sec
"
在这里插入图片描述
处理方法:
1、查看"secure-file-priv"指定的目录。用管理员登录连接数据库,执行命令"show variables like ‘%secure%’; "
mysql load data infile 报错 1290 处理方法_第1张图片
2、将导入文件传入对应的目录,再次导入。

你可能感兴趣的:(mysql,mysql)