MySQL import data appears the MySQL server is running with the--secure-file-priv

Source: Internet
Author: User
Tags mysql import

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 this is too much trouble, then we need to change the configuration file, find the My.ini configuration file, modify the path, restart

MySQL import data appears the MySQL server is running with the--secure-file-priv

Related Article

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.