mysqldump-to-csv
mysqldump-to-csv copied to clipboard
Python script to convert .sql dump to CSV format
"SQL INSERT statement could not be found!" check is performed on all lines, in case if there is header data in the sql file, the script will refuse to process...
If there is a special symbol in the SQL dump, csv writer will throw "_csv.Error: need to escape, but no escapechar set"
For anyone who wants to create a new csv file for the result, just add ```{Python} sys.stdout = open('Result.csv', 'a') ``` in the beginning of the code.
Automatically skip non-insert lines and other sql meta data