Uninstall MySQL Error resolution Method 1
Dpkg:error processing Mysql-server (--configure): Dependency problems-leaving unconfigured 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 it 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)
Workaround:
Remove MySQL before deleting/var/lib/mysql and/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
UBUNTU completely remove MySQL then reload MySQL
Delete MySQL
sudo apt-get autoremove--purge mysql-server-core-5.5
sudo apt-get remove Mysql-server
sudo apt-get autoremove mysql-server
sudo apt-get remove Mysql-common//This is very important in fact some of them are superfluous.
Clean up residual data
sudo dpkg-l |grep ^rc|awk ' {print $} ' |sudo Xargs dpkg-p
Binary installation can refer to http://dev.mysql.com/doc/refman/5.5/en/binary-installation.html
Shell>groupadd mysql
Shell>useradd -r -g mysql mysql
Shell>cd /usr/local
Shell>tar zxvf /path/to/mysql-VERSION-OS
.tar.gz
Shell>ln -s full-path-to-mysql-VERSION-OS
mysql
Shell>cd mysql
Shell> sudochown -R mysql .
Shell> sudochgrp -R mysql .
Shell> sudoscripts/mysql_install_db --user=mysql
Shell> sudochown -R root .
Shell> sudochown -R mysql data
# Next command is Optionalshell>sudocp support-files/my-default.cnf /etc/my.cnf
Shell>bin/mysqld_safe --user=mysql &
# Next command is optionalshell> sudocp support-files/mysql.server /etc/init.d/mysql.server
Shell> sudo/etc/init.d/mysql.server start
Problems with reinstalling after MySQL uninstall under Ubuntu