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

Source: Internet
Author: User
Tags mysql import

---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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.