I have a table with 45 millions from a mysql DB, i want to export those data in a .csv format, what is best way to do without affecting existing performance of other tables (when this operation is performed)?
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Ok i figured it out,
to export
->select * into outfile ‘c:/tmp/outfile.txt’ fields terminated by ‘,’ from tablename;
To Import
LOAD DATA LOCAL INFILE ‘c:/tmp/outfile.txt’ INTO TABLE newtablename
FIELDS TERMINATED BY ‘,’
LINES TERMINATED BY ‘\n’;