我尝试从文件中加载数据,但出现错误1290。mysql> show variables like 'secure_file_priv';+------------------+------------------------------------------------+1 row in set (0.0
mysql的版本是mysql Ver 14.14 Distrib 5.5.53, for Win64 (AMD64)mysql -uroot -proot编辑:ERROR 1290 (HY000): The MySQL server is running with the --secure-file-privopti on so it cannot execute this statement
m
terminated by ',' lines terminated by ',\r\n' ignore 1 lines;Error Code: 12900.000 secSHOW VARIABLES LIKE "secure_file_priv";secure_file_priv C:\ProgramData\MySQL\MySQL Server 8
我有一个关于MySQL数据导入的新手问题。我正在尝试将一个.csv文件导入到我的MySQL数据库中,然后我遇到了" secure_file_priv“错误,它花了我一整天的时间去谷歌并尝试,我发现secure_file_priv的值是'/var我的代码: mysql> show variables like "secure_file_priv";
+------------------+-----------------------
在将文件(filename.csv)加载到表中时,它会被---secure-file-priv option捕获,因此我将文件保存到下一条命令所示的C:\ProgramData\MySQL\MySQLshow variables like "secure_file_priv";load data infile 'C:\ProProgramData\MySQL\MySQL Server 8.0错误码:
ERROR 1290 (HY000): The