About the secure_file_priv parameter setting of the my.ini file

Problems encountered:

  Today I plan to export the data in mysql to the a.txt file, and encounter the following problems:

 

 

reason:

 MySql database is limited when exporting the database. Don't let others export the data in the database casually.

This is achieved through the secure_file_priv parameter in the my.ini file [mysql system configuration file]. The specific usage is as follows:

 

# 1. Restrict mysqld from not allowing import/export
# secure_file_priv=null
# 2. Restrict mysqld import/export only in /tmp/ directory
# secure_file_priv=/tmp/
# 3. Do not restrict mysqld import/export [ set nothing]

Notice:

  After the parameters in the my.ini file are modified, be sure to restart the MySQL service, otherwise it will have no effect.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324802331&siteId=291194637