Make sure you are logged in as root user. If not, append sudo before every command.
-Run apt-get update before proceeding. This is important for not getting any error in below process.
apt-get install mysql-server mysql-client
-Press ‘Y’ on prompt during installation
-Enter desired password for MySQL “root” user
Start up your cloud server with Amazon Elastic Compute 2.
Yes ! You need to sign up for that. Keep your credit card ready.
They won’t charge you for creating account. The moment you start using their services, billing starts.
Sign up here : http://aws.amazon.com/
Before launching a instance (instance=server), go through http://aws.amazon.com/ec2/instance-types/ .
You will get to launch a free micro instance for one year. You can do all your experiments on this micro instance.