10月 13
今天升级mysql server遇到错误,错误信息如下:

Preparing to replace mysql-server-5.0 5.0.38-0ubuntu1 (using .../mysql-server-5.0_5.0.45-1ubuntu2_i386.deb) ...
* Stopping MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: warning - old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
* Stopping MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: error processing /var/cache/apt/archives/mysql-server-5.0_5.0.45-1ubuntu2_i386.deb (--unpack):
subprocess new pre-removal script returned error exit status 1
* Stopping MySQL database server mysqld [fail]
invoke-rc.d: initscript mysql, action "stop" failed.
* Starting MySQL database server mysqld [ OK ]
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
Errors were encountered while processing:
/var/cache/apt/archives/mysql-server-5.0_5.0.45-1ubuntu2_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


解决办法:

sudo cat /var/run/mysqld/mysqld.pid #获得mysql server的运行ID,填入下方kill后的 xxx
sudo kill xxx #'xxx'为上方的输出结果
 

再重新升级mysql server.

Defined tags for this entry: ,

作者 rollenc

| 主要出源 (0)
对此文章进行打分:
当前分数: 5 of 5 。 2 次打分。 676 次点击
Bookmark ubuntu升级Mysql Server失败的解决办法  at del.icio.us Digg ubuntu升级Mysql Server失败的解决办法 Mixx ubuntu升级Mysql Server失败的解决办法 Bloglines ubuntu升级Mysql Server失败的解决办法 Technorati ubuntu升级Mysql Server失败的解决办法 Fark this: ubuntu升级Mysql Server失败的解决办法 Bookmark ubuntu升级Mysql Server失败的解决办法  at YahooMyWeb Bookmark ubuntu升级Mysql Server失败的解决办法  at Furl.net Bookmark ubuntu升级Mysql Server失败的解决办法  at reddit.com Bookmark ubuntu升级Mysql Server失败的解决办法  at blinklist.com Bookmark ubuntu升级Mysql Server失败的解决办法  at Spurl.net Bookmark ubuntu升级Mysql Server失败的解决办法  at NewsVine Bookmark ubuntu升级Mysql Server失败的解决办法  at Simpy.com Bookmark ubuntu升级Mysql Server失败的解决办法  at blogmarks Bookmark ubuntu升级Mysql Server失败的解决办法  with wists Bookmark ubuntu升级Mysql Server失败的解决办法  at Ma.gnolia.com wong it! Bookmark using any bookmark manager! Stumble It!

0 引用

  1. 没有引用

0 回复

回复显示方式(直线程 | 分线程)
  1. 没有回复

新增回复


You can use [geshi lang=lang_name [,ln={y|n}]][/lang] tags to embed source code snippets
电子邮件地址将不会被显示,而仅将被用于发送电子邮件通知

为了阻止机器人提交垃圾回复,请在相应的文本框中输入你在下面的图片中所看到的字符串。只有在你输入的字符串和图片中的字符串吻合的情况下,你的回复才能被成功提交。请确认你的浏览器支持、并且已经开启了cookies功能,否则的话,你的回复无法被正确地验证。
CAPTCHA