I am trying to import an existing CSV file into my database and I want to see the progress. I usually use pipe viewer when I do my sql files but for csv files I cannot figure out how to do it.
I use macOX 10.15 and mysql 8.02 (not home-brew).
My idea was:
pv users.csv | mysql -u user -p -db < File/to/users.csv
Without using PV I just connect to my mysql change to my db and use this command:
LOAD DATA INFILE '/File/to/users.csv' INTO TABLE users FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '\"' LINES TERMINATED BY '\n';
but I do not the see process.