Steps to install MySQL on Ubuntu-12.10
1 Configure localrc file.
2 $ init.sh
3 $ mysql.sh
If you want to build MySQL from source code, You have to download cmake & mysql source code. Then run the mysql-src-ist.sh script.
NOTE: you need to change the source package name you got.