title: Phpstorm. Can't access to mysql server through SSH tunnel (connection is closed by foreign host)
body: <p>Sorry for the mistakes I've made, I'm not Englishman.</p>
  
  <p>I use vagrant to deploy remote virtual machine as my web server which is configured to use <code>:private_network, ip: "192.168.10.10"</code>. On the machine is installed Nginx, PHP, MariaDB etc.</p>
  
  <p>Recently, I start to use phpstorm as my main IDE. Now I'm trying to configure access to remote database server, but I fail. Please, see the screens for additional information.</p>
  
  <p>To check the ssh and mysql server access I tried the following:</p>
  
  <pre><code>$ ssh vagrant@192.168.10.10 #ok
  $ mysql -h localhost -P 3306 -u root -p #ok (it's run on the remote machine)
  $ telnet -l root localhost 3306 #also run on the remote machine,
  the output:
  5.5.5-10.0.7-MariaDB-1~precise-log%how)b3s?�O|G*=63=yi#qmysql_native_password
  Connection closed by foreign host.
  </code></pre>
  
  <p>MariaDB configuration file seems to be ok. I only changed <code>bind-address</code> in <code>/etc/mysql/my.cnf</code> to <code>0.0.0.0</code>.</p>
  
  <p>I tried to set different configuration data, like: localhost:8080 instead of 169.168.10.10:80, double check password in SSH tunnel window, but nothing. Please, help me..</p>
  
  <p><img src="https://i.stack.imgur.com/diRVv.png" alt="enter image description here"><img src="https://i.stack.imgur.com/1u3Le.png" alt="enter image description here"></p>