title: Node.js: password trouble
body: <p>i have a strange problem with my nodejs module mysql</p>
  
  <p>i'm trying to connect node with mysql</p>
  
  <p>on the connection i have something like this</p>
  
  <pre><code>client.password = 'password';
  </code></pre>
  
  <p>an it connects correctly but if i get the password from a variable like this</p>
  
  <pre><code>var pass = "password"
  client.password = pass;
  </code></pre>
  
  <p>the annoying msg "Access denied..." apears</p>
  
  <p>I have this trouble only on windows, in linux the code works fine...</p>
  
  <p>Any help... please?</p>
  
  <p>so, i'm using node-webkit in my project</p>
  
  <hr>
  
  <p>Update</p>
  
  <p>I have this extactly code, previuosly i set the localStorage and the sessionStorage variables by obtaining the values from a form</p>
  
  <pre><code>   Client = require('mysql').Client;
     client = new Client();
  
      client.host = localStorage.ip;  
      client.port = parseInt(localStorage.puerto);    
      client.user = localStorage.user;
      client.password = sessionStorage.pass;
      client.multipleStatements = true;
  
      client.on("error", function(err) {
          econexion = true;
          throw err;
      });
  </code></pre>
  
  <p>And it works perfectly over linux x86 and linux x64 but in windows simply doesn't work, bit if i put the password like a direct String it works "fine", some like this</p>
  
  <pre><code>Client = require('mysql').Client;
     client = new Client();
  
      client.host = localStorage.ip;  
      client.port = parseInt(localStorage.puerto);    
      client.user = localStorage.user;
      client.password = "secret";
      client.multipleStatements = true;
  
      client.on("error", function(err) {
          econexion = true;
          throw err;
      });
  </code></pre>
  
  <p>i changed the sessionStorage by localStorage, but it's the same, and the other props works without problems</p>
  
  <p>thanks again</p>