Export MySQL data to separate txt files -


I have a MySQL database dump of approximately 250,000 records. I am very new to MySQL, Needs to export in their own .txt file. Is there a way to do this using MySQL? If not, can I do this with Java code?

Thank you.

You can output a select statement in a file, but only one file at a time

  SELECT * OUTFILE, '\' defined by lines \ n '  

I have a I suggest to output from a single file to MySQL and then break that file in Linux using split (hopefully this is your OS)

  Split -l 1-a 20 outputfile.csv   

The states that output file suffix went out, so you have to increase a value-for high-value

Comments