title: Connecting to remote mysql server using MacOS Terminal command line
body: <p>I have looked all over internet but cannot find right answer. I am learning php/mysql and have database on a remote mysql server at gearhost.com which I would like to connect to in order to train. I would like to use command line instead of phpMyAdmin to work on database.</p>
  
  <p>My question is: how do I connect to database using Terminal? Is there a command that work with it or do I need to install something into MacOS first?</p>