Answers for "install mysql server on amazon linux 2"


install mysql on amazon linux instance

sudo yum update -y 
#The Amazon Linux default repositories contains Mariadb packages for the installation. To install MySQL community relese, first configure MySQL yum repository on your machine.

sudo rpm -Uvh 
#After that run the following command to install the MySQL 5.7 packages on your systems. This will also install all other required dependencies.
sudo yum install mysql-community-server 
#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:

sudo systemctl enable mysqld 
sudo systemctl start mysqld 

#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.
sudo grep 'temporary password' /var/log/mysqld.log
Posted by: Guest on July-29-2021

Code answers related to "install mysql server on amazon linux 2"

Code answers related to "SQL"

Browse Popular Code Answers by Language