Skip to content

Instantly share code, notes, and snippets.

@hoyangtsai
Last active May 28, 2020 06:09
Show Gist options
  • Save hoyangtsai/5ec9adc89400fc432c956f4d9250b760 to your computer and use it in GitHub Desktop.
Save hoyangtsai/5ec9adc89400fc432c956f4d9250b760 to your computer and use it in GitHub Desktop.
mysql snippet
# Output a file of query result with formatted table from a sql file
mysql -u$user -p$password -h$ip $table_name --table < query.sql > output.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment