1. Download MySQL Source
wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
2. Install the MySQL source
sudo rpm-ivh mysql57-community-release-el7-7.noarch.rpm
3. Installing Mysql-community-server
sudo yum install mysql-community-server-y
4. Restart MySQL
Systemctl Restart Mysqld
Note: Automatic start service with Systemctl enable MySQL
5. View temporary password
grep ' A temporary password '/var/log/mysqld.log
2015-12-24T08:04:50.296020Z 1 [Note] A temporary password is generated for [email protected]: I (eks9pyklp_
6. Log in to MySQL with a temporary password and change the root password, add users, open remote access
>mysql-uroot-p
Enter Password:
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is
server version:5.7.10 MySQL Community Server (GPL)
Copyright (c), Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of the Oracle Corporation and/or its
affiliates. Other names trademarks of their respective
owners.
Type ' help ', ' or ' \h ' for help. Type ' \c ' to clear the current input statement.
mysql> alter user ' root ' @ ' localhost ' identified by ' abc123///';
Query OK, 0 rows Affected (0.00 sec)
mysql> flush Privileges;
Query OK, 0 rows Affected (0.00 sec)
mysql> Create user Hadoop identified by ' abc123///'
Query OK, 0 rows Affected (0.00 sec)
mysql>grant All privileges on * * to ' root ' @ '% ' identified by ' abc123///' with GRANT option;
Query OK, 0 rows affected, 1 Warning (0.00 sec)
7. Open the firewall and restart the firewall to confirm the port
sudo firewall-cmd--permanent--add-service MySQL
Systemctl Restart Firewalld.service
Iptables-l-n|grep 3306
This article from "12666595" blog, declined reprint!
CentOS7.2 installing MySQL 5.7.10