Install CentOS Linux release 7.1.1503 (Core)
Link: https://pan.baidu.com/s/1c2rWsbm Password: 5NRT
#yum-y install MySQL
#yum-y Install Mysql-devel
#yum-y Install wget
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
# RPM-IVH mysql-community-release-el7-5.noarch.rpm
# yum-y Install Mysql-community-server
Set MySQL password and open remote connection
[[Email protected] ~]# service MySQL start
Redirecting To/bin/systemctl start Mysql.service
[Email protected] ~]# mysql-u root
Welcome to the MySQL Monitor. Commands End With; or \g.
Your MySQL Connection ID is 2
Server version:5.6.38 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> set password for ' root ' @ ' localhost ' =password (' root ');
Query OK, 0 rows Affected (0.00 sec)
Mysql> Grant all privileges on * * to [e-mail protected] '% ' identified by ' root ';
Query OK, 0 rows Affected (0.00 sec)
mysql> flush Privileges;
Query OK, 0 rows Affected (0.00 sec)
Mysql> quit
Bye
[Email protected] ~]#
Firewall off under test
[Email protected] ~]# Systemctl stop Firewalld.service
[Email protected] ~]# mysql-v
MySQL Ver 14.14 distrib 5.6.38, for Linux (x86_64) using Editline Wrapper
Linux-centos 7 MySQL Installation