RHEL7.3編譯安裝mariadb10.2.6
1、卸載系統自帶的MySql或mariadb及boost
[[email protected] ~]# rpm -qa | grep mysql
[[email protected] ~]# rpm -qa | grep mariadb
mariadb-libs-5.5.52-1.el7.x86_64
[[email protected] ~]# rpm -e --nodeps mariadb-libs-5.5.52-1.el7.x86_64
[[email protected] ~]# rpm -qa|grep boost
[[email protected]
2、查看是否存在mysql用戶及組
[[email protected] ~]# cat /etc/group | grep mysql
[[email protected] ~]# cat /etc/passwd | grep mysql
3、創建mysql用戶和組
[[email protected] ~]# groupadd mysql
[[email protected] ~]# useradd -g mysql -s /usr/sbin/nologin mysql
4、創建mariadb安裝目錄
[[email protected]