在CentOS7.3编译安装MariaDB10.2.12详细教程
[root@localhost~]#find-H/etc/|grepmy.c /etc/pki/tls/certs/make-dummy-cert /etc/pki/tls/certs/renew-dummy-cert /etc/my.cnf.d /etc/my.cnf.d/MysqL-clients.cnf /etc/my.cnf
[root@localhost~]#rm-rf/etc/my.cnf/etc/my.cnf.d/
[root@localhost~]#find-H/etc/|grepmy.c /etc/pki/tls/certs/make-dummy-cert /etc/pki/tls/certs/renew-dummy-cert
到目前为止,系统最小化安装自带的数据库配置文件已经删除干净了!
2. 卸载系统自带mariadb-libs
[root@localhost~]#rpm-qa|grepmariadb-libs mariadb-libs-5.5.52-1.el7.x86_64
卸载
[root@localhost~]#rpm-emariadb-libs-5.5.52-1.el7.x86_64--nodeps
安装相关包
[root@localhost~]#yum-yinstalllibaio [root@localhost~]#yum-yinstalllibaio-devel [root@localhost~]#yum-yinstallbison [root@localhost~]#yum-yinstallbison-devel [root@localhost~]#yum-yinstallzlib-devel [root@localhost~]#yum-yinstallopenssl [root@localhost~]#yum-yinstallopenssl-devel [root@localhost~]#yum-yinstallncurses [root@localhost~]#yum-yinstallncurses-devel [root@localhost~]#yum-yinstalllibcurl-devel [root@localhost~]#yum-yinstalllibarchive-devel [root@localhost~]#yum-yinstallboost [root@localhost~]#yum-yinstallboost-devel [root@localhost~]#yum-yinstallwget [root@localhost~]#yum-yinstallgcc [root@localhost~]#yum-yinstallgcc-c++ [root@localhost~]#yum-yinstallmake [root@localhost~]#yum-yinstallcmake [root@localhost~]#yum-yinstallperl [root@localhost~]#yum-yinstallkernel-headers [root@localhost~]#yum-yinstallkernel-devel [root@localhost~]#yum-yinstallpcre-devel
如果yum在某些环境下(内网.不能连接外网的情况)可以在网易的开源镜像搜索下载对应rpm包进行安装 网易开源镜像地址:
http://mirrors.163.com/centos/7/os/x86_64/Packages/
rpm-ivhyour-package.rpm---安装rpm包 rpm-Uvhyour-package.rpm---升级rpm包 rpm-qpackage-name---查询包是否被安装 rpm-epackage-name--nodeps---卸载某个包不检查依赖
yumlocalinstallxxx.rpm
3. 创建家目录存放软件包目录
这里目录名字可以随意
[root@localhost~]#mkdirsoft [root@localhost~]#cdsoft
4. MariaDB官网复制源码包链接地址并下载解压
下载
[root@localhostsoft]#wgethttps://downloads.mariadb.org/interstitial/mariadb-10.2.12/source/mariadb-10.2.12.tar.gz
解压
tar-zxvfmariadb-10.2.12.tar.gz