Installing and attaching MYSQL database to EC2 instance

 Installing and attaching MYSQL database to EC2 instance


Steps:

1. Make sure you have one EC2 instance running that you can access it from your terminal.



2. Switch to root mode and move to root directory
    
sudo su

cd /





3. Update existing packages.
   
sudo apt-get update

4. Now install mysql server.

sudo apt-get install mysql-server



5. Now run command for secure installation.

sudo mysql_secure_installation 


6. Give appropriate password


7. If password is not accepted you can access mysql as sudo then alter the user password


8. Now we can interact with databases.



Comments

Popular posts from this blog

AWS Services

Cloud Computing and Virtualisation