MySQL: Run Query from Bash Script or Linux Command Line - ShellHacks

How to connect to MySQL database and run SQL query from the Linux command-line (execute query from shell) or Bash script.