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
相关文章
- MySQL死锁分析
- mysql-介绍、MySQL部署、数据类型、存储引擎
- 用distinct在MySQL中查询多条不重复记录值[转]
- 【MySQL】一次修改mysql 默认路径的经历
- virtualbox虚拟机上安装centOS的网络配置(安装centos时选择桥接网络)
- Java通过mysql-connector-java-8.0.11连接MySQL Server 8.0遇到的几个问题
- mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql.pid) 的解决方法
- CentOS 6.4下编译安装MySQL 5.6.14
- Centos设置开机启动Apache和Mysql[总结]
- 【原创】基于 Keepalived 做主备的 MySQL 在切换时遇到的问题
- Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’
- mysql 命名规则:表名,字段名,索引名,视图名,等等
- Mysql 如果有多个可选条件怎么加索引_MySQL|mysql-索引
- MySQL读写分离详解(一)——基本原理
- mysql多表统计查询示例
- centos下 Apache、php、mysql默认安装路径
- ERROR 3009 (HY000): Column count of mysql.user is wrong. Expected 45, found 43. Created with MySQL 5
- Mysql下Limit注入方法(此方法仅适用于5.0.0<mysql<5.6.6的版本)
- CentOS安装mysql*.rpm提示conflicts with file from package的解决的方法
- 解决ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- Mysql报错:Can't connect to local MySQL server through socket '/tmp/mysql.sock'
- Mysql之MHA搭建部署
- Mysql安装多台mysql
- CentOS 6.8 源码安装 MySQL 5.6