MySQL problem records - import and export permission settings

MySQL problem records - import and export permission settings

Abstract: This paper records the import of the problems encountered in the use of export permission settings as well as the process of MySQL solutions.

Related Blog

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.

Solution

Join in the configuration file:

. 1  [ mysqld ] 
2  # Set Import and Export
 . 3 Secure-File-PRIV = D: \ All \ the MySQL \ File

Problem Description

Profiles in the  secure-file-priv  parameter is used to limit the import and export data to a specified directory:

When the value is null, is not allowed to import and export operations.

When the value of the specific folder, showing only import and export operations in the directory, the directory does not exist will be given.

When the value is not the specific value, not to limit the import and export operations folder.

Guess you like

Origin www.cnblogs.com/shamao/p/11597102.html