title: MySQL Connection on Node.JS
body: <p>I have a problem when I try to connect to a MySQL database hosted by OVH on NodeJS server. Here is the code :</p>
  
  <pre><code>var mysql      = require('mysql');
  
  var connection = mysql.createConnection({
    host     : 'my_ip',
    port     : '3306',
    user     : 'my_user',
    password : 'my_pass',
    connectTimeout : 10000
  });
  
  connection.connect(function(err) {
    if (err) {
      console.error('error connecting: ' + err.stack);
      return;
    }
    console.log('connected');
  });
  </code></pre>
  
  <p>But I get :</p>
  
  <pre><code>error connecting: Error: connect ETIMEDOUT
  </code></pre>
  
  <p>Everytime, not matter what I do, like changing the timeout, remove the port or anything else. Any idea ? I'm running this on ArchLinux x86_64</p>