---restore content starts---
I believe many of my classmates have encountered such problems.
MySQL import data appears the MySQL server is running with the--SECURE-FILE-PRIV option so it cannot execute this statement
Method One:
This is actually very simple because the import and export directory permissions are limited when MySQL is installed
Can only be imported under the specified directory
We need to see what the current value of Secure-file-priv is by using the following command
Show variables like '%secure% ';
We can see that value is/var/lib/mysql-files/
Then we'll change the imported path to the value above.
Method Two:
If that's too much of a hassle, then we need to change the configuration file,
Refer to: http://blog.csdn.net/lyhvoyage/article/details/50521440
After I changed, I feel that the original position is very good, may need to get it later.
---restore content ends---
MySQL Import data appears error 1290 (HY000): The MySQL server is running with the--SECURE-FILE-PRIV option so it cannot execute this St Atement