Below is the code that I use to back up my tab delimited database.
mysqldump --user=**** --fields-enclosed-by=\" --lines-terminated-by="\n" --password=**** --host=localhost --tab=/path/to/folder ****
What I cannot get is the following:
--lines-terminated-by="\n"
At the moment, if I have a TEXT column in my MySQL database, it is output as follows:
"1" "A test post" "This is an example of text on multiple lines. \ As you can see this is how it places it in the txt file. \ Blah blah blah" "2" "Another post" "More text....."
This is what I'm trying to achieve.
"1" "A test post" "This is an example of text on multiple lines.\nAs you can see this is how it places it in the txt file.\nBlah blah blah" "2" "Another post" "More text....."
According to docs, --lines-terminated-by=... supported on output using --tab . But I canβt make it work.
source share