Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

381
Views
Response like that `Error Code: 2068. LOAD DATA LOCAL INFILE file request rejected due to restrictions on access.' When I load the data from CSV

When I run the code below in MySQL5.0, I will have a response like:

Error Code: 2068. LOAD DATA LOCAL INFILE file request rejected due to restrictions on access.

LOAD DATA LOCAL INFILE 'C:\Users\Downloads\2013-07 - Citi Bike Trip Data.csv'  
INTO TABLE citibike.stations   
FIELDS TERMINATED BY ','   
LINES TERMINATED BY '\n'   
IGNORE 1 ROWS  
(@id, @startstationname, @startstationlatitude, @startstationlongitude)    
SET   
     id = @id,  
     Name =@startstationname,  
     Latitude=@startstationlatitude,  
     Longitude=@startstationlongitude;  

I already set the local infile to On, but still not working, do I need to still change any parameter?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

OK, I found the solution finally, we need to go to the MySQL Command Line Client (My version is 5.7), and change all the \ in the path to /, like

LOAD DATA LOCAL INFILE 'C:/Users/Downloads/2013-07 - Citi Bike Trip Data.csv' 

In the workbench and cell will show us the different error, in the cell, the response is Error 1148, in the workbench is 2068.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!