分享

安装cloudera遇到mysql遇到dpkg: error processing mysql-server (--configure)

pig2 发表于 2014-9-11 00:17:46 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 0 9255
本帖最后由 pig2 于 2014-9-11 00:19 编辑
导读
本文的目的是在安装cloudera manager5中,安装mysql遇到问题。
在安装的过程中原先设置密码为123不成功,后来留下root密码为空白,直接回车,然后通过下面操作mysql安装成功







start: Job failed to start
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
No apport report written because the error message indicates its a followup error from a previous failure.
                                                                                                          Errors were encountered while processing:
mysql-server-5.5
mysql-server
E: Sub-process /usr/bin/dpkg returned an error code (1)


解决方法:
删除mysql前 先删除一下 /var/lib/mysql 还有 /etc/mysql


sudo rm /var/lib/mysql/ -R
sudo rm /etc/mysql/ -R

sudo apt-get autoremove mysql* --purge
sudo apt-get remove apparmor

sudo apt-get install mysql-server mysql-common

没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条