title: NodeJs util.promisify is not a function
body: <p>I'm trying to promisify a mysql function but when I run it the console shows this error <code>util.Promisify is not a function</code>. This is my code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var util=   require('util');
  var mysql=          require('mysql');
  
  var conection=mysql.createConnection({           
      host:'localhost',                   
      user:'root',                        
      password:'616897',               
      database:'proyect'                    
   });
    
    var query = util.promisify(conection.query);
    
    query(data.valida_user).then((rows)=&gt;{
   console.log(rows);
  }).catch((error)=&gt;{
   console.log(error);
  })</code></pre>
  </div>
  </div>
  </p>
  
  <p>The same error if 
  <code>var query = util.promisify(mysql.query);</code></p>
  
  <p>I´m new programming but I'm trying to learn.</p>