Share a simpler and faster version of installation than the MySQL5.7 version: MariaDB.
Shut down the firewall before the experiment starts:
Service Firewalld Stop
Setenforce 0
After configuring Ali sources:
Wget-o/etc/yum.repos.d/centos-base.repo Http://mirrors.aliyun.com/repo/Centos-7.repo
Then install the Epel-releas environment Source:
Yum-y Install Epel-release
To install it:
Yum Clean all && yum Makecache
Then build the local Yum Source:
Yum-y Install Mariadb-server mariadb
Enter/etc/my.cnf/:
VI/ETC/MY.CNF//
Modify the Master profile, assign error logs, common logs, binary logs, slow log files, and specify where to store:
(Delete the original "mysqld" content)
[Mysqld]
Log_error=/var/lib/mysql/mysql.err
Log=/var/lib/mysql/mysql_log.log
Log_slow_queries=/var/lib/mysql_slow_queris.log
Binlog-ignore-db=mysql,information_schema
Character_set_server=utf8
Log_bin=mysql_bin
Server_id=1
Log_slave_updates=true
Sync_binlog=1
auto_increment_increment=2
Auto_increment_offset=1
You can then start the service:
Systemctl Start mariadb
Detects if Port 3306 is turned on:
NETSTAT-ANPT | grep 3306
Enter "MySQL" directly to access the database service.
Linux Installation mysql-mariadb version