title: Can't complete mysql request in nodejs
body: <p>I am using the exact code (changing the local host and password exec) that I get off the mssql site <a href="https://www.npmjs.com/package/mssql" rel="nofollow">https://www.npmjs.com/package/mssql</a>. I only have one table and I just want to complete a query. </p>
  
  <pre><code>var sql = require('mssql');
  
  sql.connect("mssql://root:password@localhost:3306/testdb").then(function() {
  
  new sql.Request()
    .query('select * from scores').then(function(recordset) {
      console.dir(recordset);
      }).catch(function(err) {
          console.log(err);
  });
  
  }).catch(function(err) {
      console.log(err);
  });
  </code></pre>
  
  <p>I used "npm install mssql" and it didn't have any problems. I run it with the "new sql.Request()...." part removed and it runs with no errors. I take this to mean that it connects to the SQL server successfully. </p>
  
  <p>SQL server is on or at least workbench tells me it is on.</p>
  
  <p>Then I add in my bare bones query and I get a stack index out of range exception. I have no idea what exactly is causing it. </p>
  
  <p>I get this very unhelpful error.</p>
  
  <pre><code>buffer.js:613
  throw new RangeError('index out of range');
  ^
  
  RangeError: index out of range
  at checkOffset (buffer.js:613:11)
  at Buffer.readUInt8 (buffer.js:651:5)
  at Packet.isLast (E:\Space!\WebDesign\SQL server\node_modules\mssql\node_mod
  ules\tedious\lib\packet.js:112:29)
  at ReadablePacketStream.&lt;anonymous&gt; (E:\Space!\WebDesign\SQL server\node_mod
  ules\mssql\node_modules\tedious\lib\message-io.js:91:18)
  at emitOne (events.js:77:13)
  at ReadablePacketStream.emit (events.js:169:7)
  at readableAddChunk (E:\Space!\WebDesign\SQL server\node_modules\mssql\node_
  modules\tedious\node_modules\readable-stream\lib\_stream_readable.js:210:18)
  at ReadablePacketStream.Readable.push (E:\Space!\WebDesign\SQL server\node_m
  odules\mssql\node_modules\tedious\node_modules\readable-stream\lib\_stream_reada
  ble.js:169:10)
  at ReadablePacketStream.Transform.push (E:\Space!\WebDesign\SQL server\node_
  modules\mssql\node_modules\tedious\node_modules\readable-stream\lib\_stream_tran
  sform.js:123:32)
  at ReadablePacketStream._transform (E:\Space!\WebDesign\SQL server\node_modu
  les\mssql\node_modules\tedious\lib\message-io.js:57:16)
  </code></pre>
  
  <p>I would like this to not happen any one know what I am doing wrong?</p>