0

我的 MySQL 服务器在 ESXi 服务器重新启动后刚刚停止工作......它不会自动启动,我无法从我的 Unix shell 启动它。

~# service mysql restart
restart: Unknown instance:

~# sudo service mysql start
start: Job failed to start

~# sudo -u mysql mysqld
~# 
~# netstat -tap | grep mysql
~#
~# service mysql restart
restart: Unknown instance:

/var/log/ 处的文件:mysql.err 和 mysql.log 为空。此处的文件 /var/log/mysql/error.log 有一些信息:

Version: '5.1.62-0ubuntu0.11.10.1'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  (Ubuntu)
130410  9:50:54 [ERROR] /usr/sbin/mysqld: Table './radius/radcheck' is marked as crashed and should be repaired
130410  9:50:54 [Warning] Checking table:   './radius/radcheck'
130410  9:50:54 [ERROR] /usr/sbin/mysqld: Table './radius/radpostauth' is marked as crashed and should be repaired
130410  9:50:54 [Warning] Checking table:   './radius/radpostauth'
130410  9:50:54 [ERROR] /usr/sbin/mysqld: Table './radius/resv' is marked as crashed and should be repaired
130410  9:50:54 [Warning] Checking table:   './radius/resv'
130819 22:31:21 [Note] Plugin 'FEDERATED' is disabled.
130819 22:31:21  InnoDB: Initializing buffer pool, size = 8.0M
130819 22:31:21  InnoDB: Completed initialization of buffer pool
InnoDB: The log sequence number in ibdata files does not match
InnoDB: the log sequence number in the ib_logfiles!
130819 22:31:21  InnoDB: Database was not shut down normally!
InnoDB: Starting crash recovery.
InnoDB: Reading tablespace information from the .ibd files...
InnoDB: Restoring possible half-written data pages from the doublewrite
InnoDB: buffer...    

谁能告诉我,这里有什么问题?

4

1 回答 1

1

呃……太丑了。

这是一个修复。卸载时,复制要删除的软件包列表,然后使用该列表重新安装它们。

http://www.blog.webcare.pk/2012/05/ubuntu-mysql-cannot-start-after-upgrade.html

于 2013-08-19T22:02:42.340 回答