MySQL 5.6将不会启动或login到日志文件

我需要使用mySQL 5.6function(在Ubuntu上),所以我卸载了我从apt-get获得的版本,并下载并编译了mySQL 5.6源代码。 它安装好,但我不能让mysqld启动。 当我运行命令sudo /usr/local/mysql/bin/mysqld我得到以下输出:

 2013-02-25 10:03:47 11597 [ERROR] Can't find messagefile '/usr/share/mysql/errmsg.sys' 2013-02-25 10:03:47 11597 [Note] Plugin 'FEDERATED' is disabled. 2013-02-25 10:03:47 11597 [Note] InnoDB: The InnoDB memory heap is disabled 2013-02-25 10:03:47 11597 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins 2013-02-25 10:03:47 11597 [Note] InnoDB: Compressed tables use zlib 1.2.3 2013-02-25 10:03:47 11597 [Note] InnoDB: CPU does not support crc32 instructions 2013-02-25 10:03:47 11597 [Note] InnoDB: Using Linux native AIO 2013-02-25 10:03:47 11597 [Note] InnoDB: Initializing buffer pool, size = 128.0M 2013-02-25 10:03:47 11597 [Note] InnoDB: Completed initialization of buffer pool 2013-02-25 10:03:47 11597 [Note] InnoDB: Highest supported file format is Barracuda. 2013-02-25 10:03:48 11597 [Note] InnoDB: 128 rollback segment(s) are active. 2013-02-25 10:03:48 11597 [Note] InnoDB: Waiting for purge to start 2013-02-25 10:03:48 11597 [Note] InnoDB: 1.2.10 started; log sequence number 2431209696 2013-02-25 10:03:48 11597 [ERROR] Aborting 

然后打印出关于各种插件closures的消息。 我想知道为什么它启动失败,所以我试图让它logging更具体的错误信息。 我试图创build/usr/share/mysql/errmsg.sys文件,但是当我尝试启动时,它只是打印其他错误,所以我再次删除该文件。 我查看了/etc/mysql/my.cnf并取消注释了这样一段话:

  general_log_file = /var/log/mysql/mysql.log general_log = 1 

然后我创build了文件/var/log/mysql/mysql.log,把它变成了mysql:adm,并试着再次启动它,但是它不会写入文件。

有什么build议在这里尝试? 谢谢!

马克瓦格纳的评论是正确的。 我可以通过运行命令sudo cp /usr/local/mysql/share/english/errmsg.sys /usr/share/mysql/errmsg.syssudo chown mysql:mysql /usr/share/mysql/errmsg.sys来解决问题sudo chown mysql:mysql /usr/share/mysql/errmsg.sys 。 有关更多信息,请参阅https://askubuntu.com/questions/102875/ysql-5-5-starts-and-then-instantly-stops-on-ubuntu-10-10