How to Save results from MySQL into an external file


/ Published in: MySQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. echo "SELECT columns FROM table_name WHERE whatever='something'" | /path/to/mysql -uUSERNAME -pPASSWORD DATABASENAME > /tmp/outfile.txt;

Report this snippet


Comments


You need to login to view comments.