MariaDB10.5安置 二 源码和二进造安置安置_mariadb1_奇闻趣事网

MariaDB10.5安置 二 源码和二进造安置安置_mariadb1

奇闻趣事 2023-05-04 12:31www.bnfh.cn奇闻趣事

MariaDB10.5安装 二 源码和二进制安装安装

MariaDB10.5安装 一 安装包方式安装

MariaDB10.5安装 二 源码和二进制安装安装

9de7bb31d0644e7393039222babfed10

闲话少说, 本次演示源码和二进制安装安装安装MariaDB10.5

Oracle8.4 源码安装 MariaDB 10.5

yum -y install git g g-c++ make bison ncurses ncurses-devel zlib-devel libevent-devel cmake openssl openssl-devel curl-devel libaio libaio-devel ncurses-pat-libs gnutls gnutls-devel
#解压编译
tar xf /softare/mariadb-10.5.10.tar.gz -C /tmp
cd /tmp/mariadb-10.5.10
mkdir build ; cd build
cmake -DCMAKE_BUILD_TYPE=Release 
           -DCMAKE_INSTALL_PREFIX=/usr/local/mariadb 
           -DMYSQL_DATADIR=/u01/mysql/data 
           -DSYSCONFDIR=/etc 
           -DMYSQL_UNIX_ADDR=/tmp/mysql.sock 
           ..
make -j 2 && make install  

#环境准备
groupadd mysql
useradd -g mysql mysql
ln -s /usr/local/mariadb /usr/local/mysql
chon -R root:mysql /usr/local/mysql
#准备配置文件
[ -f /etc/my.f ] && mv /etc/my.f /etc/my.f.$(date +%Y%m%d%H%M%S)
cat > /etc/my.f <> ${HOME}/.bash_profile <

Oracle8.4 二进制安装 MariaDB 10.5

yum -y install  libaio ncurses-pat-libs
groupadd mysql
useradd -g mysql mysql
tar -zxf /softare/mariadb-10.5.10-linux-systemd-x86_64.tar.gz -C /usr/local
ln -s /usr/local/mariadb-10.5.10-linux-systemd-x86_64 /usr/local/mysql
chon -R root:mysql /usr/local/mysql/
#准备配置文件
[ -f /etc/my.f ] && mv /etc/my.f /etc/my.f.$(date +%Y%m%d%H%M%S)
cat > /etc/my.f < /usr/lib/systemd/system/mariadb.service<> ${HOME}/.bash_profile <

至此, 安装包方式, 源码方式,二进制方式安装Mariadb完成, 请关注防丢失。9de7bb31d0644e7393039222babfed10谢谢

Copyright © 2016-2025 www.bnfh.cn 怪异网 版权所有 Power by