centos 7 安裝mariadb


centos 7 安裝mariadb10.2.18

rpm -qa | grep -i mariadb
rpm -ev --nodeps ***

wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/MariaDB-10.2.18-centos73-x86_64-compat.rpm
wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/MariaDB-10.2.18-centos73-x86_64-common.rpm
wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/MariaDB-10.2.18-centos73-x86_64-server.rpm
wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/MariaDB-10.2.18-centos73-x86_64-client.rpm
wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/MariaDB-10.2.18-centos73-x86_64-devel.rpm


wget https://downloads.mariadb.com/MariaDB/mariadb-10.2.18/yum/centos7-amd64/rpms/galera-25.3.24-1.rhel7.el7.centos.x86_64.rpm



rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install jemalloc

rpm -hiv --nodeps MariaDB-10.2.18-centos73-x86_64-compat.rpm
rpm -hiv --nodeps MariaDB-10.2.18-centos73-x86_64-common.rpm
rpm -hiv --nodeps MariaDB-10.2.18-centos73-x86_64-server.rpm
rpm -hiv --nodeps MariaDB-10.2.18-centos73-x86_64-client.rpm
rpm -hiv --nodeps MariaDB-10.2.18-centos73-x86_64-devel.rpm
rpm -hiv --nodeps galera-25.3.24-1.rhel7.el7.centos.x86_64.rpm

sysyemctl start mysql

初始化
mysql_secure_installation

留言

這個網誌中的熱門文章

Linux使用指令更改IP方法

Fortigate-轉port