apt-get remove mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libhtml-template-perl mysql-server-core-5.1 libevtlog0 mysql-server-5.1 libnet1
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
mysql-server
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 106 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 28208 files and directories currently installed.)
Removing mysql-server ...
Setting up mysql-server-5.1 (5.1.72-2) ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.1 (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
mysql-server-5.1
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@monitor:~#
I've had issues with MySQL not starting so I was going to reinstall it. Still will not go.
I've tried looking under /var/log for errors but I am not getting anything logged.
The config:
cat /etc/mysql/debian.cnf
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = Ku8MpmYWrX24hKSA
socket = /var/run/mysqld/mysqld.sock
log = /var/log/mysql.log
[mysql_upgrade]
host = localhost
user = debian-sys-maint
password = Ku8MpmYWrX24hKSA
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
log = /var/log/mysql.log
The log:
cat /var/log/mysql.log
root@monitor:~#
dpkg-reconfigure mysql-server-5.1
/usr/sbin/dpkg-reconfigure: mysql-server-5.1 is broken or not fully installed
What should I do to figure out why MySQL is not working right?
EDIT: I deleted all my.cnf files and reinstalled after a force uninstall. Still:
Setting up mysql-server-5.1 (5.1.72-2) ...
Stopping MySQL database server: mysqld.
/etc/init.d/mysql: WARNING: /etc/mysql/my.cnf cannot be read. See README.Debian.gz ... (warning).
Starting MySQL database server: mysqld . . . . . . . . . . . . . . failed!
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.1 (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
mysql-server-5.1
E: Sub-process /usr/bin/dpkg returned an error code (1)
dpkg-reconfigure mysql-server-5.1
?/var/lib/dpkg/info/mysql-server-5.1.prerm
, and runDEBIAN_SCRIPT_DEBUG=1 apt-get remove mysql-server
and post the transcript.