select * from a_test into outfile 'd:/ent.txt' ;
查询:select * from a_test into outfile 'd:/ent.txt' 错误代码: 1290The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
show global variables like '%secure%';
|
Variable_name
|
VALUE
|
|
require_secure_transport
|
OFF
|
|
secure_file_priv
|
C:\\ProgramData\\MySQL\\MySQL SERVER 8.0\\Uploads\\
|
| 参数值 |
说明
|
|
null
|
不允许导入导出
|
|
指定文件夹(
C:\\ProgramData\\..
)
|
mysql的导入导出只能发生在指定的文件夹
|
|
secure_file_priv 不设置
|
没有任何限制
|
secure-file-priv=