Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm totally new in Amazon's ec2. I use Windows XP on my computer. If I create a Linux instance, can I install MySQL on it?

share|improve this question

migrated from Nov 20 '11 at 2:53

This question came from our site for professional and enthusiast programmers.

Yes, it's possible. If you're asking the question, you may not have the necessary knowledge to do it, of course. – dossy Nov 20 '11 at 0:23

You can consider Amazon's EC2 to be essentially a VPS. Once you launch your instance, you will have full root access to it, via SSH. The instance will be setup with the keypair you assign to it, and which you will use to access it.

On Windows XP, you will likely use PuTTY as your SSH client. The key you get from AWS needs to be converted in order to use with PuTTY. Amazon provides instructions on this here.

Once you have gained access to your instance, you can install MySQL in the same way you normally would on the linux distribution you chose.

For instance, on a RHEL/CentOS/Amazon Linux distribution:

sudo yum install mysql-server


sudo apt-get install mysql-server

You can do pretty much anything you want to your instance - including things like changing the root volume (and operating system), install anything you want (compile code, use a repository, etc), network your instances together, adding multiple volumes, etc.

If you are just starting out with EC2, you should look over the getting started guide.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.