@llplmlyd
2020-12-15T16:54:48.000000Z
字数 389
阅读 720
数据库
1.下载mydumper二进制包
wget -q -N http://$downloadurl/tools/mydumper-0.9.1.tar.gz
2.解压下载依赖
tar xzf mydumper-0.9.1.tar.gz
yum install -y git gcc gcc-c++ ncurses-devel bison
yum install glib2 glib2-devel pcre pcre-devel cmake -y
cd mydumper-0.9.1
3.编译 DMYSQL_CONFIG 为mysql脚本目录地址
cmake -DMYSQL_CONFIG=/usr/local/mysql${g_port}/bin/mysql_config
make
make install
echo "/usr/local/mysql33066/lib" >>/etc/ld.so.conf
ldconfig