mysql make 报错_CentOS 7 重装mysql编译过程报错解决方法

错误记录:

[ 82%] Building C object libmysql/CMakeFiles/clientlib.dir/__/sql-common/client.c.o

/usr/local/src/mysql-5.6.30/sql-common/client.c:1902: error: ‘cli_list_fields’ undeclare d here (not in a function)

/usr/local/src/mysql-5.6.30/sql-common/client.c:1903: error: ‘cli_read_prepare_result’ u ndeclared here (not in a function)

/usr/local/src/mysql-5.6.30/sql-common/client.c:1904: error: ‘cli_stmt_execute’ undeclar ed here (not in a function)

/usr/local/src/mysql-5.6.30/sql-common/client.c:1905: error: ‘cli_read_binary_rows’ unde clared here (not in a function)

/usr/local/src/mysql-5.6.30/sql-common/client.c:1906: error: ‘cli_unbuffered_fetch’ unde clared here (not in a function)

/usr/local/src/mysql-5.6.30/sql-common/client.c:1908: error: ‘cli_read_statistics’ undec lared here (not in a function)

/usr/local/src/mysql-5.6.30/sql-common/client.c: In function ‘cli_read_query_result’:

/usr/local/src/mysql-5.6.30/sql-common/client.c:4113: warning: implicit declaration of f unction ‘handle_local_infile’

make[2]: *** [libmysql/CMakeFiles/clientlib.dir/__/sql-common/client.c.o] Error 1

make[1]: *** [libmysql/CMakeFiles/clientlib.dir/all] Error 2

make: *** [all] Error 2

解决方法:

删掉旧的已编译过的安装包

# /bin/rm -rf mysql-5.6.30

重新解压源码安装包

# tar xvf mysql-5.6.30.tar.gz

# cd mysql-5.6.30

# mkdir build

# cd build

# cmake .. -DCMAKE_INSTALL_PREFIX=/data/mysql/ -DMYSQL_TCP_PORT=3306 -DEXTRA_CHARSETS=complex -DWITH_SSL=system -DWITH_EMBEDDED_SERVER=1 -DENABLED_LOCAL_INFILE=1 -DWITH_PARTITION_STORAGE_ENGINE=1 -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_MYISAMMRG_STORAGE_ENGINE=1 -DENABLE_DTRACE=OFF

# make

# make install

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值