Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

377
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda