potworny
asked on
How do I stop this stubborn Mysqld service under Debian?
Hi,
The question is very simple.
I would like to upgrade my Mysql.
But the aptitude program failed to stop Mysqld saying:
<quote>
Stopping MySQL database server: mysqld failed!
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 1
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
</quote>
What do I do in order to stop the Mysql database?
The following also fails:
# /etc/init.d/mysql stop
Stopping MySQL database server: mysqld failed!
Anyone? Any ideas? :)
Best regards,
Terrible Johnny
The question is very simple.
I would like to upgrade my Mysql.
But the aptitude program failed to stop Mysqld saying:
<quote>
Stopping MySQL database server: mysqld failed!
invoke-rc.d: initscript mysql, action "stop" failed.
invoke-rc.d returned 1
There is a MySQL server running, but we failed in our attempts to stop it.
Stop it yourself and try again!
</quote>
What do I do in order to stop the Mysql database?
The following also fails:
# /etc/init.d/mysql stop
Stopping MySQL database server: mysqld failed!
Anyone? Any ideas? :)
Best regards,
Terrible Johnny
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
pkill kills processes by name, the -9 sends a SIGKILL signal which will force it to immediately quit.
ASKER
Why do I have a feeling that data may be lost when killing mysqld?
ASKER
I used the following solution:
killall -w mysqld
The database closed and therefore I was able to upgrade it. But I still have a feeling that it was unsafe...
killall -w mysqld
The database closed and therefore I was able to upgrade it. But I still have a feeling that it was unsafe...