标签:sys com mysql的安装 linux 文章 x86_64 库冲突 二进制包 download
Linux系统版本:CentOS7.4[root@localhost ~]# rpm -qa | grep mariadb
mariadb-libs-5.5.56-2.el7.x86_64
[root@localhost ~]# rpm -e --nodeps mariadb-libs-5.5.56-2.el7.x86_64
(2)创建mysql用户和用户组:
[root@localhost ~]# groupadd mysql
[root@localhost ~]# useradd -r -g mysql -s /bin/false mysql
(3)创建MySQL安装目录和data目录:
[root@localhost ~]# mkdir /opt/mysql
[root@localhost ~]# mkdir -p /data/mysql
[root@localhost ~]# chown -R mysql:mysql /opt/mysql
[root@localhost ~]# chown -R mysql:mysql /data/mysql
(4)安装相关依赖:
[root@localhost ~]#yum install -y cmake make gcc gcc-c++ ncurses-devel openssl-devel
(4)编译安装:
[root@localhost ~]# tar -xvf mysql-boost-5.7.28.tar.gz
[root@localhost mysql-5.7.28]# cmake -DCMAKE_INSTALL_PREFIX=/opt/mysql -DMYSQL_DATADIR=/data/mysql -DMYSQL_USER=mysql -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1 -DWITH_BLACKHOLE_STORAGE_ENGINE=1 -DWITH_PERFSCHEMA_STORAGE_ENGINE=1 -DWITH_READLINE=1 -DDOWNLOAD_BOOST=1 -DWITH_BOOST=/root/mysql-5.7.28/boost/boost_1_59_0/ -DMYSQL_DATADIR=/data/mysql -DWITH_SSL=system
[root@localhost ~]#make && make install
标签:sys com mysql的安装 linux 文章 x86_64 库冲突 二进制包 download
原文地址:https://blog.51cto.com/13486869/2454631