Mysql:Changes in MySQL 5.6.34 (2016-10-12, General Availability):secure-file-priv
Changes in MySQL 5.6.34 (2016-10-12, General Availability)
-
Incompatible Change: The
secure_file_privsystem variable is used to limit the effect of data import and export operations. The following changes have been made to how the server handles this variable:-
secure_file_privcan be set toNULLto disable all import and export operations. -
The server checks the value of
secure_file_privat startup and writes a warning to the error log if the value is insecure. A non-NULLvalue is considered insecure if it is empty, or the value is the data directory or a subdirectory of it, or a directory that is accessible by all users. Ifsecure_file_privis set to a nonexistent path, the server writes an error message to the error log and exits. -
Previously, the
secure_file_privsystem variable was empty by default. Now the default value is platform specific and depends on the value of theINSTALL_LAYOUTCMake option, as shown in the following table.INSTALL_LAYOUTValueDefault secure_file_privValueSTANDALONE,WINNULLDEB,RPM,SLES,SVR4/var/lib/mysql-filesOtherwise mysql-filesunder theCMAKE_INSTALL_PREFIXvalue -
To specify the default
secure_file_privvalue explicitly if you are building from source, use the newINSTALL_SECURE_FILE_PRIVDIRCMake option. To specify a directory for the embedded server, set the newINSTALL_SECURE_FILE_PRIV_EMBEDDEDDIRoption. Its default value isNULL.
(Bug #24679907, Bug #24695274, Bug #24707666)
-
浙公网安备 33010602011771号