title: how to write a script for connecting to mysql by TCP/IP over SSH?
body: <p>As shown in the title, I want to open mysql at my local terminal.
  I wrote 2 lines:</p>
  
  <pre><code>ssh -i pem user@1.1.1.1   #Log in to server with password
  mysql -h xxx -u user -p  #connect to MySQL with password
  </code></pre>
  
  <p>Is it possible to make it in one line?  Or Can I write it in a script?
  Really fresh on Bash:)</p>