title: Connecting to remote host via mysql client cli
body: <p>I am trying to establish a remote database connection via the mysql client cli.</p>
  <p>I am executing for example the following command:</p>
  <pre><code>mysql -h REMOTE_HOST
  </code></pre>
  <p>The problem I am having is that despite of specifying the REMOTE_HOST, &quot;mysql&quot; is still connecting to the local server and I really don't know why.</p>
  <p>Only when I specify a different port than 3306, then the REMOTE_HOST is getting parsed:</p>
  <pre><code>mysql -h REMOTE_HOST --port 3308
  </code></pre>
  <p>I really have no idea what to do.
  Inside the mysql config file &quot;skip-networking&quot; is not set and &quot;bind-address&quot; is set to &quot;0.0.0.0&quot;.</p>
  <p>But i think that these parameters are important for the mysql server and not client configuration, right?</p>
  <p>Would be glad about your profound recommendations!</p>
  <p>Thanks a lot and a great week!</p>
  <p>Denis</p>
  <p>PS:</p>
  <p>mysql socket is used.</p>
  <p>mysql --version returns:
  mysql  Ver 15.1 Distrib 10.0.31-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2</p>
  <p>Ubuntu is used as OS.</p>