Bug 24909
Summary: | mysql init scripts MUST stop using mysqladmin | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Adrian Chung <adrianc> |
Component: | mysql | Assignee: | Patrick Macdonald <patrickm> |
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.0 | CC: | jw35 |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2001-01-25 04:28:44 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
Adrian Chung
2001-01-25 04:28:41 UTC
Creating a .my.cnf in roots home directory should fix this. If there is any other way of flushing the logs, let me know. Works like a charm. If only MySQL documented that somewhere useful. If only you were closer to Canada, I'd buy you a beer. :) Not being able to change/set the (MySQL) root password without having to store it somewhere else in plain text is not very satisfactory. It will make it even more likely that people will run MySQL with wide open access to anyone who can log on to the machine. MySQL can be cleanly stopped with a kill -TERM (that's what the supplied mysql.server.sh script does). For log file flushing, I'd suggest that you arrange to create a new MySQL user in postinstall with a random PWD and only RELOAD rights. (GRANT RELOAD to *.* TO sys_reload@localhost IDENTIFIED BY "<pwd>") Then hardwire the password into the rotate script. At least then the password, even if discovered, will only alow someone to do one of a number of reloads. And people will be able to set a root pwd without further problems. Take a look at 3.23.32-5 when it shows up in Rawhide, it implements some of this. |