title: Connect to MySQL Server from node.js, but server in remote loaction
body: <p>Connect to MySQL Server from Node.js But MySQL Server in remote location, How can i connect?</p>
  
  <p>I tried below example : </p>
  
  <pre><code>   var mysql = require("mysql");
  
  var connection = mysql.createConnection({
      host:"http://somelocation", 
      user:"root",
      password:"roor"
  });
  
  connection.connect(function(err){
     if (err) {
      console.log("Error Connection to DB" + err);
      return;
     }
     console.log("Connection established...");
  });
  
  connection.end(function(err){
  
  
  });
  </code></pre>
  
  <p>But I am getting Error : </p>
  
  <pre><code>Error Connection to DBError: getaddrinfo ENOTFOUND https://exmaple.com
  </code></pre>
  
  <p>Thanks in advance ! </p>