install mysql on amazon linux instance

Solutions on MaxInterview for install mysql on amazon linux instance by the best coders in the world

showing results for - "install mysql on amazon linux instance"
Maxwell
15 Jul 2019
1sudo yum update -y 
2#The Amazon Linux default repositories contains Mariadb packages for the installation. To install MySQL community relese, first configure MySQL yum repository on your machine.
3
4sudo rpm -Uvh https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm 
5#After that run the following command to install the MySQL 5.7 packages on your systems. This will also install all other required dependencies.
6sudo yum install mysql-community-server 
7#Once the MySQL installation completed on your Amazon Linux system. You need to enable the MySQL service to start on system boot. Also, start service using the following commands:
8
9sudo systemctl enable mysqld 
10sudo systemctl start mysqld 
11
12#Once you start MySQL server for the first time, an auto generated password is set for the root account. You can find this password in MySQL logs.
13sudo grep 'temporary password' /var/log/mysqld.log