How to create a database in Amazon EC2

I created an account in Ec2, but I can’t understand how to upload a file to ec2 server, how to create an ftp account to transfer files, and how to create a MySQL database in ec2.

If anyone knows, please share with me.

+4
source share
1 answer

Since you have an account with Amazon and EC2, you can use their console: https://console.aws.amazon.com/ec2/home .

In the console, click Instances , then Run Instance to create a new virtual machine. There are many operating systems; A good choice for the first instance would be 32-bit Ubuntu running on the m1.small instance.

If you already have Keypair, select the one you want from the list. Otherwise, you can create a new Keypair in the Keypair dialog box. When a new instance is created, you can use keypair to connect to it using a command like:

 ssh -i siva_keypair root@InstancePublicDNS 

You can get the public DNS name of the instance from the console. At this stage, you basically log on to the new computer and can use it in any way using a real physical machine.

According to him, you will want to create some user accounts, install an FTP server and MySQL (use apt-get if you are on Ubuntu).

Note that you can lose the data that you put on the local drive if the instance does not work - if you use the database, you must use EBS , which is very easy to configure, and you get a permanent, fast storage that can be connected to any copy of EC2.

+7
source

All Articles