`
emcome
  • 浏览: 296589 次
  • 性别: Icon_minigender_1
  • 来自: 重庆
社区版块
存档分类
最新评论

mysql安装问题

阅读更多

来自:http://bbs.linuxtone.org/thread-1555-1-1.html

源码编译 mysql ,有时会出现很多问题,很多问题都是因为编译时需要很多关联的文件 导致,下面我将在编译过程中出现的一些问题及解决 方法发表如下,同时也希望各位在编译和安装过程中出现的问题和解决方法也发表出来
1.当编译出现mysql   执行 ./configure --prefix=/usr/local/mysql6 时出现这样的问题。如下:
error: No curses/termcap library found
解决方法:   安装ncurses 和 ncurses-devel

2.当make的时候,出现 error: redeclaration of C++ built-in type ‘bool
解决方法: 安装gcc-c++ ,安装后重新./configure

 

 

3.mysql 启动时出现“Starting MySQL. ERROR! Manager of pid-file quit without updating file.”

通过mysql日志:/usr/local/mysql/var/server.test.info.err

[root@server ~]# cat /usr/local/mysql/var/server.test.info.err

091110 23:23:29 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
/usr/local/mysql/libexec/mysqld: Table 'mysql.plugin' doesn't exist
091110 23:23:29 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
091110 23:23:29 [ERROR] /usr/local/mysql/libexec/mysqld: unknown option '--skip-federated'
091110 23:23:29 [ERROR] Aborting

 根据错误提示注释掉/etc/my.cnf里的 "skio-federated"

再执行: /usr/loca/mysql/bin/mysql_install_db --user=mysql  即可。

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics