我的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...
有谁能告诉我,这里可能出现什么问题?
答案 0 :(得分:1)
呃......那很难看。
这是一个修复。卸载时,复制要删除的软件包列表,然后使用该列表重新安装它们。
http://www.blog.webcare.pk/2012/05/ubuntu-mysql-cannot-start-after-upgrade.html