MySQL Forums
Forum List  »  MySQL Workbench

Error: 2068: importing local file error of restriction/ 1290: --secure-file-priv
Posted by: Hardeep Sahu
Date: March 21, 2024 12:02AM

LOAD DATA LOCAL INFILE 'my file location'
INTO TABLE customer FIELDS TERMINATED BY ','
OPTIONALLY ENCLOSED BY '"'
LINES TERMINATED BY '\n'
IGNORE 1 ROWS;

If I use the upload file location this error occurs.
Error Code: 1290. The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

and if I put any other location this
Error Code: 2068. LOAD DATA LOCAL INFILE file request rejected due to restrictions on access. 0.000 sec

Options: ReplyQuote


Subject
Views
Written By
Posted
Error: 2068: importing local file error of restriction/ 1290: --secure-file-priv
472
March 21, 2024 12:02AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.