0

I am trying to load a .csv file into my table named ImportMaia, and I have used the following code to do so:

LOAD DATA INFILE 'C:\Users\esomm\Documents\Maia.xlsx' INTO TABLE MaiaImport
FIELDS TERMINATED BY '\t';

I was given the following error:

"The MySQL server is running with --secure-file-priv option so it cannot execute this statement"

I tried to use SET GLOBAL local_infile=1;, but that didn't help. Any thoughts?

1 Answers1

0

The command must be, to disable it

SET GLOBAL local_infile= "OFF";

But i doubt that it will tun even then, Look at the file in an hex editor and see if the codes match with https://en.wikipedia.org/wiki/Control_character

nbk
  • 45,398
  • 8
  • 30
  • 47