# MySQL
MySQL is the database service which is needed for the application. So we need to install it and configure it for the application to work.
## Manual Steps to Install MySQL
As per the Application need, we are choosing MySQL 5.7 version.
1. Setup MySQL Repo
# echo '[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-5.7-community/el/7/$basearch/
enabled=1
gpgcheck=0' > /etc/yum.repos.d/mysql.repo
2. Install MySQL
# yum install mysql-community-server -y
3. Start MySQL.
# systemctl enable mysqld
# systemctl start mysqld
4. Now a default root password will be generated and given in the log file.
# grep temp /var/log/mysqld.log
5. Next, We need to change the default root password in order to start using the database service.
# mysql_secure_installation
6. You can check the new password working or not using the following command.
# mysql -u root -p