title: Install MySQL support for Node JS
body: <p>I'm trying to install MySQL support for NodeJS (v0.6.9) on Ubuntu. I'm issuing the following commands:</p>
  
  <pre><code>sudo apt-get install libmysqlclient-dev
  </code></pre>
  
  <p>I get no errors. I then install the module for Node:</p>
  
  <pre><code>sudo npm install -g db-mysql
  </code></pre>
  
  <p>Again. No errors. However, I do get what looks like a warning:</p>
  
  <pre><code>Checking for node path                   : not found 
  </code></pre>
  
  <p>But the installation ends with:</p>
  
  <pre><code>'build' finished successfully (1.504s)
  db-mysql@0.7.6 /usr/local/lib/node_modules/db-mysql
  </code></pre>
  
  <p>In my program source I now add:</p>
  
  <pre><code>var mysql = require("db-mysql");
  </code></pre>
  
  <p>But when I run this, I get the following error:</p>
  
  <pre><code>node.js:201
          throw e; // process.nextTick error, or 'error' event on first tick
                ^
  Error: Cannot find module 'db-mysql'
      at Function._resolveFilename (module.js:334:11)
      at Function._load (module.js:279:25)
      at Module.require (module.js:357:17)
      at require (module.js:373:17)
      at Object.&lt;anonymous&gt; (/home/me/projects/node/test.js:4:13)
      at Module._compile (module.js:444:26)
      at Object..js (module.js:462:10)
      at Module.load (module.js:351:31)
      at Function._load (module.js:310:12)
      at Array.0 (module.js:482:10)
  </code></pre>
  
  <p>It obviously can't find the <code>db-mysql</code> module.</p>