Posted By

endorfin on 12/18/09


Tagged

mysql


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

natsuki
rukarmr
kubaitis
virendrakryadav


How to Save results from MySQL into an external file


 / Published in: MySQL
 

  1. echo "SELECT columns FROM table_name WHERE whatever='something'" | /path/to/mysql -uUSERNAME -pPASSWORD DATABASENAME > /tmp/OUTFILE.txt;

Report this snippet  

You need to login to post a comment.