title: Create mySQL database through ssh in a bash script
body: <p>I want to create a database on a remote server through ssh with a bash script. Something like this</p>
  
  <pre><code>#!/bin/sh
  ssh user@example.com 'mysql -h example.com -uroot -pMYPASSWD -e "CREATE DATABASE $1;"'
  </code></pre>
  
  <p>So that I in terminal can run it like</p>
  
  <pre><code>$ myBashScript nameOfNewDatabase
  </code></pre>