mysql安装错误总结

1、若在启动mysql服务时出现如下错误,可查看错误日志找出错误原因。

  Error:Starting MySQL.The server quit without updating PID file (/data/mysql/failed184_sles10.pid).

 

2、Error:

130730 10:15:37 [ERROR] COLLATION 'utf8_general_ci' is not valid for CHARACTER SET 'latin1'

130730 10:15:37 [ERROR] Aborting

 若错误日志中出现如上错误,则是在编译的时候字符集与校对集没有对应。校对集时utf8_general_ci, 而字符集是latin1。 

解决方法:在配置文件my.cnf 中的[mysqld]下面加上 -DDEFAULT_CHARSET=utf8;-DDEFAULT_COLLATION=utf8_general_ci 这两条语句。“utf8”和“utf8_general_ci ”可改成相应的字符集合校对集。 修改完后看能否启动成功,若是出现同样的问题,那没办法只能从头编译再装了。

 

3、Error:

130730 14:46:20 [ERROR] Plugin 'InnoDB' init function returned error.

130730 14:46:20 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.

130730 14:46:20 [ERROR] Unknown/unsupported storage engine: InnoDB

130730 14:46:20 [ERROR] Aborting

出现如上错误可能是innodb在启动时出了问题。

解决方法:在配置文件里面写上 [mysqld] skip-innodb 或者在data目录下将文件ib_logfile0、ib_logfile1删除即可

 

 

 

4、CMake Error: The source directory "/data/cheriegong" does not appear to contain CMakeLists.txt.

若编译时出现以上错误,需要把预编译里面的MYSQL_USER去掉,即可预编译成功!

posted @ 2013-09-10 09:41  gxcherie  阅读(1622)  评论(0编辑  收藏  举报