Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] MySQL behaving strangely
- Date: Thu, 18 Sep 2008 14:05:14 +0200
- From: Sigurd Urdahl <sigurdur@example.com>
- Subject: Re: [tlug] MySQL behaving strangely
- References: <48CF9C78.4050204@articlass.org> <200809162132.09910.fcartegnie@free.fr> <48CFB686.5060502@articlass.org> <1d581afe0809160818n7dda6c95o49a24633d80c0841@mail.gmail.com> <48D0EF58.2040704@articlass.org> <48D1E9A5.7050104@bebear.net> <48D1F559.4090909@articlass.org>
- User-agent: Thunderbird 2.0.0.16 (X11/20080724)
Dave M G wrote:Edward,
Thank you for responding.What you need to do is force the package to be remove the package even if an error occurs in the pre-removal script. I don't know whether you can do this with the Synaptic package manager but I am pretty sure it is possible with dpkg.
Even dpkg is barfing up errors:
$ sudo dpkg --force-all -r mysql-server-5.0
dpkg - warning, overriding problem because --force enabled:
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
[...]
Man... this is annoying. Why won't MySQL just die when I tell it to?
Dave,
this is a bit ugly, but should work:
* terminate all running mysql processes (killall -9 mysqld, check with ps that there are no more Mysql processes)
* make the init script look like it does what the dpkg wants it to do
* * edit /etc/init.d/mysql - add "exit 0" as the second line in the script. This makes it seem that stop and start works.
* Now try to remove with dpkg as you did before.
* Check that /etc/init.d/mysql, /etc/my.cnf, /etc/mysql/, /root/.my*, and /etc/default/mysql is gone (or delete them)
* Try installing mysql again.
* * check that the different paths for sockets and pid files are the same in /etc/mysql/*, /etc/init.d/mysql, /etc/my.cnf, and /etc/default/mysql
kind regards, -sig
-- Sigurd Urdahl Linux, goofing, cooking, making fire, computer security, having a beer. Give me good music.
- References:
- [tlug] MySQL behaving strangely
- From: Dave M G
- Re: [tlug] MySQL behaving strangely
- From: Francois Cartegnie
- Re: [tlug] MySQL behaving strangely
- From: Dave M G
- Re: [tlug] MySQL behaving strangely
- From: Ian Barwick
- Re: [tlug] MySQL behaving strangely
- From: Dave M G
- Re: [tlug] MySQL behaving strangely
- From: Edward Middleton
- Re: [tlug] MySQL behaving strangely
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Hard Drive Failure (Was: Help! Total hardware failure)
- Next by Date: Re: [tlug] MySQL behaving strangely
- Previous by thread: Re: [tlug] MySQL behaving strangely
- Next by thread: Re: [tlug] MySQL behaving strangely
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links