Install mysql 5.1 in ubuntu 14.04

How to install mysql 5.1 in ubuntu 14.04? Actually, it is easy to install mysql version 5.5. However, with version 5.1, it is so difference. You have to install this from source.

Download mysql 5.1 source code:

Uncompress the packet:

Install dependencies:

Install from source:

Create mysql data directory and mysql user

DB install

And try to run mysql