设为首页 加入收藏

TOP

MySQL问题记录——导入导出权限设置
2019-09-30 16:50:01 】 浏览:47
Tags:MySQL 问题 记录 导入 导出 权限 设置

MySQL问题记录——导入导出权限设置

摘要:本文主要记录了在使用MySQL的过程中导入导出权限设置时遇到的问题以及解决方案。

相关日志

1 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabled.
2 [Warning] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path.
3 [ERROR] Failed to access directory for --secure-file-priv. Please make sure that directory exists and is accessible by MySQL Server.

解决办法

在配置文件中加入:

1 [mysqld]
2 # 设置导入导出
3 secure-file-priv=D:\All\MySQL\file

问题说明

配置文件里的 secure-file-priv 参数是用来限制将数据导入导出到指定目录的:

当值为null,表示不允许导入导出操作。

当值为具体的文件夹,表示导入导出只能在该目录下操作,目录不存在会报错。

当值没有具体值时,表示不限制导入导出操作的文件夹。

】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇使用动态SQL处理table_name作为输.. 下一篇MySQL问题记录——导入导出权限设..

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目