How to install LAMP on ubuntu 12
This will too ask you two confirmation for which write "y" and click "Enter".
sudo apt-get install mysql-server
Now this time it will ask you a confirmation and if you press "y+Enter" it will start installing mysql server on your system.
It will then ask password for the root user.(Be careful while entering password at this stage as you will need this later on.)
And now you are done installing Mysql server, if you want you can check it by opening a new tab in your terminal (Ctrl+Shift+t).
Enter "mysql -u root -p" in your terminal and press enter, you will be asked for the password. Enter password which you set during installation.
You will see "mysql>" in your terminal and you are now able to use mysql.