title: mysql module in node.js not works in my case
body: <p>So i have next test code, which i found <a href="http://net.tutsplus.com/tutorials/javascript-ajax/node-js-for-beginners/" rel="nofollow noreferrer">here</a></p>
  
  <pre><code>// Include http module,
  var http = require('http'),
  // And mysql module you've just installed.
     mysql = require("mysql");
  // Create the connection.
  // Data is default to new mysql installation and should be changed according to your configuration.
  var connection = mysql.createConnection({
     user: "root",
     password: "pass",
     database: "db_name"
  });
  // Create the http server.
  http.createServer(function (request, response) {
     // Attach listener on end event.
     request.on('end', function () {
        // Query the database.
        connection.query('SELECT * FROM your_table;', function (error, rows, fields) {
           response.writeHead(200, {
              'Content-Type': 'x-application/json'
           });
           // Send data as JSON string.
           // Rows variable holds the result of the query.
           response.end(JSON.stringify(rows));
        });
     });
  // Listen on the 8080 port.
  }).listen(8080);
  </code></pre>
  
  <p>i download mysql module, install mysql of course, and run next script, and get no results. Can you give me advice what i do wrong?</p>
  
  <p>When i trying to load </p>
  
  <pre><code>http://localhost:8080/
  </code></pre>
  
  <p>browser trying to load page several minutes, and also no result.</p>
  
  <p>Thanks.</p>
  
  <p><strong>update</strong>
  <img src="https://i.stack.imgur.com/1dS5u.png" alt="enter image description here"></p>