08CMS Info: MySQL Query Error
# sql操作命令
SQL: LOAD DATA INFILE 'E:/project/09cms/install/sql/load_files/' INTO TABLE #__abrels
CHARACTER SET utf8
FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY ''''
LINES TERMINATED BY '
'
# 报错提示
File: run() called at [/install/index.php : 20]
Error: The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
Errno.: 1290
- 通过命令查看secure-file-priv 的当前值:
show variables like '%secure%';
在C盘的位置为默认路径
方法一:
直接把需要的加载的文件放到 C 盘 MySQL 的 uploads 目录下
方法二:
修改路径,通过打开 my.ini(C:\ProgramData\MySQL\MySQL Server 5.7) 配置文件进行查看及修改:
最后:
重启服务器,记住是重启mysql服务哦
参考链接(内涵加载命令):https://blog.csdn.net/quiet_girl/article/details/71436108