出现错误:The MySQL server is running with the --secure-file-priv option so it cannot...解决方法

    xiaoxiao2022-07-12  133

    mysql5.7导出数据提示–secure-file-priv选项问题的解决方法

    出现了:ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot 。。

    可能原因1

    首先可能是导入导出权限的问题:出现了:ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot 。。 此时你可以show variables like ‘%secure%’; 查看有权限的文件夹并把数据导入进去。 或者更改my.ini文件中的secure_file_priv参数,它用于限制LOAD DATA, SELECT …OUTFILE, LOAD_FILE()传到哪个指定目录。把secure_file_priv:路径改成你自己的路径即可

    可能原因2

    把你路径的反斜杠\改成斜杠:就是下面这样: C:\ProgramData\MySQL\MySQL Server 8.0\Uploads\World_cup_dataset.csv 改成下面: C:/ProgramData/MySQL/MySQL Server 8.0/Uploads/World_cup_dataset.csv

    最新回复(0)