install mysql on AMI ec2 code example
Example: installing mysql on aws using putty terminal
To install a MySQL Server on aws using putty terminal
1. First step is to of course ssh into the EC2 instance.
2. Then, at a command prompt, use the following command to install MySQL Server: sudo yum install mysql-server. When you are prompted, type 'y'.