In centos7 version, the default is maridb, s so the need to manually download
Install wget: yum install wget (wget is not installed, then you need to install)
Download: mysql-server: wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm
installation: mysql- Sever: RPM -ivh MySQL-Community Community-Release-el7-5.noarch.rpm
: yum install MySQL-Community Community-serve
After the installation is complete, start mysql service and set the boot:
Start Service: sercice mysql start
boot: chkconfig mysqld on
Inspection services: service mysql status
shut down the service: service mysql stop
restart service: service mssql restart
When first installed, there is no password
into the mysql mysql database, user table view, by set password for 'root' @ ' localhost' = password ( 'password'); set a password
: Mysql configuration
there when configuring a remote connection, see the user table a host field, which table the user's access rights,% of full open, that is, the remote can also be connected, localhost represents native access to
the root user is generally not open remote permissions, We need to rebuild a new user: create user 'user' @ ' host' IDENTIFIED by 'password';
firewalld operation command: https://www.cnblogs.com/moxiaoan/p/5683743.html