mysql prompt error [Error Code] 1290 - The MySQL server is running with the --secure-file-priv option solution

1. Go to mysql view secure_file_prive value

$mysql -u root -p

mysql>SHOW VARIABLES LIKE "secure_file_priv";

= null secure_file_prive    -  limit allowed to import and export mysqld

= secure_file_priv / tmp /    -  limit mysqld import and export only occur in / tmp / directory

= secure_file_priv ''          not mysqld  introduced export restrictions do 

2. Change the value of secure_file_pri

Find my.ini configuration file in the mysqld adding the directory, secure_file_priv = '', restart the mysql server.

 

Guess you like

Origin www.cnblogs.com/dalijiang/p/11309658.html
Recommended