源码安装mysql
【摘要】 #Source Code(percona-server-5.7.27-30.tar.gz)https://www.percona.com/downloads/Percona-Server-5.7#Boost-1.59.0http://www.linuxfromscratch.org/blfs/view/7.8/general/boost.htmlyum -y install readline...
#Source Code(percona-server-5.7.27-30.tar.gz)
https://www.percona.com/downloads/Percona-Server-5.7
#Boost-1.59.0
http://www.linuxfromscratch.org/blfs/view/7.8/general/boost.html
yum -y install readline-devel gcc gcc-c++ boost make cmake bison bison-devel ncurses-devel libaio-devel perl git libtirpc libtirpc-devel curl-devel
useradd -s /sbin/nologin -M mysql
mkdir -p /opt/mysql
mkdir -p /data/mysql/data
mkdir -p /opt/mysql/etc
chown -R mysql:mysql /data/mysql
#注意DWITH_BOOST文件位置。
cmake . \
-DCMAKE_INSTALL_PREFIX=/opt/mysql \
-DMYSQL_DATADIR=/data/mysql/data \
-DSYSCONFDIR=/opt/mysql/etc \
-DMYSQL_UNIX_ADDR=/tmp/mysql.sock \
-DWITH_BOOST=/root/boost_1_59_0 \
-DDEFAULT_CHARSET=utf8 \
-DDEFAULT_COLLATION=utf8_general_ci \
-DWITH_MYISAM_STORAGE_ENGINE=1 \
-DWITH_INNOBASE_STORAGE_ENGINE=1 \
-DWITH_ARCHIVE_STORAGE_ENGINE=1 \
-DWITH_BLACKHOLE_STORAGE_ENGINE=1 \
-DWITH_EDITLINE=0 \
-DENABLED_LOCAL_INFILE=1 \
-DENABLE_DOWNLOADS=1
make -j 4
make install
【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
- 点赞
- 收藏
- 关注作者
评论(0)