当升级debian挤到喘气时,mysql升级到mysql-server-5.5失败:
# apt-get dist-upgrade -u ... Setting up mysql-server-5.5 (5.5.31+dfsg-0+wheezy1) ... [ ok ] Stopping MySQL database server: mysqld. ... [FAIL] Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed! invoke-rc.d: initscript mysql, action "start" failed. dpkg: error processing mysql-server-5.5 (--configure): subprocess installed post-installation script returned error exit status 1 dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. dpkg: error processing mysql-server (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: mysql-server-5.5 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)
当我运行/usr/bin/mysqld_safe --skip-syslog ,生成的日志文件重复这个消息:
130520 23:54:23 InnoDB: Error: trying to access tablespace 1 page no. 2, InnoDB: but the tablespace does not exist or is just being dropped.
据我所知,我没有任何InnoDB表。
做什么? 我不想 – 除非绝对必要,否则不要--purge mysql。
看起来好像在我的/var/lib/mysql/目录中有innoDB相关的文件( ibdata1 , ib_logfile等)。 根据这个邮件列表文章中的build议,我运行rm ib*并重新运行apt-get dist-upgrade 。 一切似乎工作。
我在/etc/apt/sources.list中有debian backports,而我只是盲目地用wheezyreplace单词,而不检查我使用的是什么回购。 当我进行远程升级时,我看到了类似的结果。
删除backports repos(如果有的话),并执行更新/升级。
我遇到了同样的问题。 问题是debian wheezy的源代码列表。 下面的步骤解决了我的问题在debian wheezy mysql-server。
2.生成源列表。
4.之后,运行#apt-get update
希望能帮助到你。