We have an article on setting up Node.js on Ubuntu 14.04:
As for integrating with Mysql, there are a number of solutions. One popular one is node-mysql: https://github.com/felixge/node-mysql
You can install it with:
npm install mysql
Let us know how it goes, and if you run into any specific issues!