您的位置:首页 > 数据库 > SQL

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

2017-08-15 16:54 881 查看
SHOW GLOBAL VARIABLES LIKE '%secure%';
查看secure_file_priv 如果是“”则所有目录都可以使用,详细说明:

官网解释:

Command-Line Format
--secure-file-priv=dir_name
System VariableName
secure_file_priv
Variable ScopeGlobal
Dynamic VariableNo
Permitted Values (<= 5.7.5)Typestring
Default
empty
Valid Values
empty
dirname
Permitted Values (>= 5.7.6)Typestring
Default
platform specific
Valid Values
empty
dirname
NULL
This option sets the
secure_file_priv
system variable, which is used to limit the effect of data import and export operations, such as those performed by the

LOAD DATA
and
SELECT ... INTO OUTFILE
statements and the
LOAD_FILE()
function. For more information, see the description of

secure_file_priv
.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐