Is there a simple way to email the results of a mysql query from either the mysql console directly or from the linux console? Nice formatting is a bonus.
mysql -u .. -p.. -H <<<"your query" | mutt -s 'subject' [email protected]
if you consider HTML is better formatting
personally, i prefer \G
mysql -u .. -p.. -N <<<"your query\G" | mail -s 'subject' [email protected]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With