gpt4 book ai didi

MySQL 将 secure-file-priv 设置为多个目录

转载 作者:可可西里 更新时间:2023-11-01 07:58:09 27 4
gpt4 key购买 nike

有没有办法让MySQL不设置secure-file-priv=''就可以从多个目录加载数据?

例如:

secure-file-priv="path/to/dir1","path/to/dir2"

来自阅读docs , 目前尚不清楚是否允许多个目录,如果允许,如何允许。

最佳答案

简短的回答是否定的。您只能为 secure-file-priv 设置一个位置。

也就是说,配置的每个子目录 都可以写入。

如果你想在系统的任何地方写,那么你可以这样配置:

[mysqld]
secure-file-priv="/"

重要的是要注意 into outfile 创建的任何文件都是 writable by all users .

关于MySQL 将 secure-file-priv 设置为多个目录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40247853/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com