Bug 54671
Summary: | mysql-server fails to shut down | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Need Real Name <redhat> |
Component: | mysql | Assignee: | Patrick Macdonald <patrickm> |
Status: | CLOSED RAWHIDE | QA Contact: | David Lawrence <dkl> |
Severity: | high | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i686 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-10-17 20:36:27 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Need Real Name
2001-10-16 00:06:04 UTC
Bugs are filed against SRPM, not binary rpm, so "mysql-server" isn't missing - "mysql" is the correct component. As for how to fix the mysql brokenness (process control should not be restricted by password, root can kill it anyway and should thus be able to shut it down cleanly as well) I haven't decided yet. > Bugs are filed against SRPM, not binary rpm, so "mysql-server" isn't missing - > "mysql" is the correct component. ok, thx. > As for how to fix the mysql brokenness (process control should not be > restricted by password, root can kill it anyway and should thus be able > to shut it down cleanly as well) I haven't decided yet. I'm not sure I understand what you mean by "process control should not be restricted by password"... if this means that the account used to shut the server down should not have a password, then I guess the first alternative is better... in fact, it really is a better alternative than the $HOME/.my.cnf solution I outlined since that still requires the user to do something for the server to shut down properly. What I meant is that root should be able to do anything to a process without a password. One likely solution is to just kill it instead of using mysqladmin - not good, but mysql doesn't have something equivalent to pg_ctl. Root should be able to use mysqladmin locally without password. > One likely solution
yes, you could just replace the code in stop(), and announce the server's been
shut down, letting the killall do it. but I agree, no good. if it were Sybase
running it'd definitely be no good.
so the way to deal with it is with its own tools. mysqldmin doesn't need a
password if called with -u shutdown and that account has no password. the good
thing about this approach is it's easy for you to script in a way that doesn't
need to be touched by the user later.
Fixed in newer versions (like 3.23.49-2), which uses kill to shut it down. |