0
I used the following script to import a file .csv
to Mysql using the MySQL WorkBench
:
USE test;
LOAD DATA LOCAL INFILE 'exemplo1.csv' INTO TABLE tabela1 fields terminated by ';' lines terminated by '\r';
I saw on several other sites using only the command LOAD DATA INFILE
, but my script only works by adding the keyword LOCAL
. Can anyone say what it works for? And what’s the point of being used or not.
then but my file. csv is on the same machine as Mysql is running, or the fact that it used XAMPP since I need to access a remote server?
– rrr
@Rodrigo In this case it is necessary to inform the location of the file, for example: 'C: Documents.csv file'
– Lucio Rubens