EX — 7a INSTALLING MYSQL SERVER IN EC-2

  Installation of MySQL server. The pre-requisites required for the following are

  • An AWS account
  • An EC-2 instance with ubuntu iso image file preferably

Here are the steps that I followed to install MySQL server inside EC-2

  1. Connect to your instance through SSH if you are using a Linux machine or through putty if you are using windows

After connecting to the instance use the following commands in order to install MySQL Server

sudo su
cd ../..
sudo apt-get update
sudo apt-get install mysql-server

After the following commands enter mysql server using the following command

sudo mysql 

of course, sudo asks system root password. Once provided the right root password, we will be connected on MySQL as root MySQL user.

use MySQL session to run ALTER USER:

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'my-secret-password';

Now its time to run secure installation use the following commands as follows

sudo mysql_secure_installation

After this command press y in all the prompts that follows and also set password when asked

Now again enter into MySQL session using the following commands and perform all the required tasks








Comments

Popular posts from this blog

EX — 6 Hosting a static website on Amazon S3 ​

Cloud Computing and it’s future.