I am trying to write the results of MySQL script to a text file using the following code in my script.
SELECT p.title, p.content, c.name FROM post p LEFT JOI
Replace "\" to "/" in your file path.
"\"
"/"
Like this:
INTO OUTFILE 'D:/MySql/mysqlTest.txt';