title: MySQL driver for NodeDB: db-mysql gives node waf error on Mountain Lion
body: <p>So I am just starting out with node and npm on Mountain Lion, and have been following the Node Up and Running book to work with databases (<a href="http://chimera.labs.oreilly.com/books/1234000001808/ch06.html#mysql" rel="nofollow noreferrer">http://chimera.labs.oreilly.com/books/1234000001808/ch06.html#mysql</a>).</p>
  
  <p>When I tried sudo npm install -g db-mysql I get this message:</p>
  
  <pre><code>npm ERR! db-mysql@0.7.6 install: `node-waf configure build`
  npm ERR! Exit status 127
  npm ERR! 
  npm ERR! Failed at the db-mysql@0.7.6 install script.
  npm ERR! This is most likely a problem with the db-mysql package,
  npm ERR! not with npm itself.
  </code></pre>
  
  <p>I've tried seeing if others have run into this. Most of the answers I've found have been focused on other installs (<a href="https://stackoverflow.com/questions/9778332/during-npm-install-socket-io-i-get-error-127-node-waf-command-not-found-how-to">During npm install socket.io I get error 127, node-waf command not found. How to solve it?</a>), directed to Ubuntu (or Windows) users or simply advocate installing the mysql driver (<a href="https://stackoverflow.com/questions/14762789/how-to-install-nodejs-modules-on-windows7/14762890#14762890">How to install nodejs modules on windows7?</a>).</p>
  
  <p>The closest I've gotten is this solution in the project's issue thread, to just clone the source and replace node-waf with node-gyp: <a href="https://github.com/mariano/node-db-mysql/issues/98" rel="nofollow noreferrer">https://github.com/mariano/node-db-mysql/issues/98</a>. However the thread was started for ArchLinux, and a user ran into an error on Mountain Lion at the last step of the solution.</p>
  
  <p>Is there a significant difference between the db-mysql and mysql drivers in practice? Are these the only options? If there is a reason to use db-mysql, how can I solve this install issue on Mountain Lion?</p>