title: How to get the results from nodejs using mysql package?
body: <p>first, i connect the db and select DB:</p>
  
  <pre><code>var defaultOptions = {
      user: "root",
      pwd:'admin',
      db:"britcham_dev_local",
      server:"local", // Maybe we don't need this variable.
  };
  
  var client = new Client();
  client.user = defaultOptions.user;
  client.password = defaultOptions.pwd;
  client.connect(function (error, results) {
     // 
  });
  client.query('USE ' + defaultOptions.db, function (error, results) {
     // 
  });
  </code></pre>
  
  <p>Second, I query with client object:</p>
  
  <pre><code>var self = this;
  var this.users;
  client.query("SELECT * FROM users", function (error, results, fields) {
      if (error) {
          //
      }
      if (results.length  &gt; 0) {
          self.users = results;
      }
  });
  
  console.log(this.users);
  </code></pre>
  
  <p>it's nothing output ??? Why ??</p>