The fastest way to import CSV data into MySql database table via Command Line (LOAD DATA INFILE)

The fastest way to import CSV data into MySql database table via Command Line (LOAD DATA INFILE)

Online President

4 года назад

56,054 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Yasir Abbasi
Yasir Abbasi - 19.10.2023 13:40

Used the trick. Worked and saved 7 lives effort.

Ответить
Sheetal Kumari
Sheetal Kumari - 27.08.2023 19:45

Its a magic working with these steps to load file

Ответить
Jon Caballero
Jon Caballero - 18.07.2023 16:27

THANK GOD I clicked on video to READ rather than maybe a google search, and read countless forum OUSTANDING

Ответить
MD MOINUDDIN
MD MOINUDDIN - 02.07.2023 13:33

Amazing explanation.....it's working.....thank you so much

Ответить
D. O. Balogun
D. O. Balogun - 30.06.2023 11:54

I have a question.
If there were some records in the table before, are we still going to use the same command?

Ответить
sai_sh
sai_sh - 25.06.2023 16:48

We have to create a table within database before this execution but what incase of those tables having many columns

Ответить
Prince
Prince - 10.06.2023 23:55

Thanks a ton bro 💯

Ответить
Omar
Omar - 27.05.2023 16:30

Is there any other method to load big files? Because I am getting restriction error even after moving the file to the directory location. I have also tried changing directory location from configuration file, but nothing worked. Please help!

Ответить
nithesh shetty
nithesh shetty - 28.04.2023 10:29

C:\Users\Nithesh Shetty>mysql -u Nithesh Shetty -p --local_infile
'mysql' is not recognized as an internal or external command,
operable program or batch file. I got this when tried to login

Ответить
Olayemi O
Olayemi O - 21.04.2023 12:27

GOD BLESS YOU!

Ответить
Antal Horváth
Antal Horváth - 18.04.2023 20:06

Thank you very much!

Ответить
Ikya Venus G
Ikya Venus G - 12.04.2023 08:51

Exactly what I'm looking for and with a great detailing. Thanlks a lot man.

Ответить
A KC User
A KC User - 10.04.2023 03:14

Worked like a charm. Loaded a 28 GB (21 mm rows) database in 4.5 minutes versus running the import wizard from SQL workbench, which did inserts and ran for 2 days before I shut it down after loading just 2 mm rows. Did a TRUNC command to clear the DB but keep the schema. Had to "SET GLOBAL local_infile = true; " as someone else stated and then did the load command. Everything worked perfectly. Thanks.

Ответить
Harsha
Harsha - 06.04.2023 08:19

rejected due to restrictions on access. what to do now? where is this home page connection thing?

Ответить
Aysenur Fidan
Aysenur Fidan - 27.03.2023 16:46

Finally! I was about to go crazy since yesterday. Tried many methods. Writing scripts gave error each time. workbench is a total hell as you said! :)) Thanks a lot! Finally I can use my favorite SQL server without any problem. 🤩

Ответить
mr. zatan
mr. zatan - 10.03.2023 15:50

how to import csv file to mysql remote server

Ответить
mach smith
mach smith - 04.02.2023 02:48

very helpful, i could not use the local infile feature, however, when i adjust just the load data infile, things worked fine..thanks kindly!

Ответить
McDayveed
McDayveed - 19.01.2023 09:17

Charley, you do all! Herhhh

Ответить
Nyree
Nyree - 13.12.2022 09:02

THANK YOU!!!!

Ответить
Manoj Vilasagaram
Manoj Vilasagaram - 02.12.2022 03:48

ERROR 2 (HY000): File 'C:/Users/villa/Data/dealers.csv' not found (Errcode: 2) How to solve this error??

Ответить