使用load data导入数据时
mysql> load data infile '/myshare/area_info.txt' into table area_info; ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement mysql> show variables like '%secure_file%'; +------------------+-------+ | Variable_name | Value | +------------------+-------+ | secure_file_priv | NULL | +------------------+-------+ 1 row in set (0.00 sec) secure_file_prive=null -- 限制mysqld不允许导入导出 secure_file_priv=/tmp/ -- 限制mysqld导入导出只能发生在/tmp/目录下 secure_file_priv='' -- 不对mysqld导入导出做限制