mysql有问题,错误信息贴出来了

问答中心分类: OneinStackmysql有问题,错误信息贴出来了
匿名用户 asked 9 年 ago
Linking CXX executable mysql_client_test_embedded
../libmysqld.a(sql_builtin.cc.o).data.rel+0x48): undefined reference to `builtin_innobase_plugin'
collect2: error: ld returned 1 exit status
make[2]: *** [libmysqld/examples/mysql_client_test_embedded] Error 1
make[1]: *** [libmysqld/examples/CMakeFiles/mysql_client_test_embedded.dir/all] Error 2
make: *** [all] Error 2
MySQL install failed, Please contact the author!
Killed
root@myweb:~/oneinstack# /bin/cp: cannot stat `/usr/local/mysql/support-files/mysql.server': No such file or directory
chmod: cannot access `/etc/init.d/mysqld': No such file or directory
update-rc.d: error: unable to read /etc/init.d/mysqld
update-rc.d: using dependency based boot sequencing
include/mysql-5.6.sh: line 193: /usr/local/mysql/scripts/mysql_install_db: No such file or directory
mysqld: unrecognized service
include/mysql-5.6.sh: line 202: /usr/local/mysql/bin/mysql: No such file or directory
include/mysql-5.6.sh: line 203: /usr/local/mysql/bin/mysql: No such file or directory
include/mysql-5.6.sh: line 204: /usr/local/mysql/bin/mysql: No such file or directory
include/mysql-5.6.sh: line 205: /usr/local/mysql/bin/mysql: No such file or directory
include/mysql-5.6.sh: line 206: /usr/local/mysql/bin/mysql: No such file or directory
include/mysql-5.6.sh: line 207: /usr/local/mysql/bin/mysql: No such file or directory
include/mysql-5.6.sh: line 208: /usr/local/mysql/bin/mysql: No such file or directory
mysqld: unrecognized service

2 Answers

Best Answer

sword answered 7 年 ago
解决方法:上次的cmake未正常完成,先执行
make clean
rm -f CMakeCache.txt ,再重新cmake

匿名用户 answered 9 年 ago
可能之前我选择了mysql5.7
重新安装了一次,mysql用的默认5.6,成功安装完毕。