4.1 Download and installation:
Download and add the repository, then update.
1 | wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm |
---|---|
The following instruction is from group email and not verified:
1. Download and add the following MySQL Yum repository
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
- After downloading the package for your Linux platform, now install the downloaded package with the following command.
yum localinstall mysql-community-release-el7-5.noarch.rpm
3.Verify that the MySQL Yum repository has been added successfully
yum repolist enabled | grep "mysql.-community."
4.Install MySQL
yum install mysql-community-server
5.Start the MySQL server
service mysqld start
service mysqld status
- Verify the installed MySQL version
mysql --version
7. Get user root default password and reset password
grep 'temporary password' /var/log/mysqld.log
mysql_secure_installation
8. Connect to MySQL
mysql -u root -p