Bug 28849
| Summary: | mysql init script tweek | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | chrismcc |
| Component: | mysql | Assignee: | Patrick Macdonald <patrickm> |
| Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.1 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2001-02-22 17:24:39 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
chrismcc
2001-02-22 14:27:54 UTC
It shouldn't create that directory - it's owned by the mysql-server package. Yes, the /var/lib/mysql directory is owned by the mysql-server package. And a rpm install does create the correct 755 permissions on /var/lib/mysql But this is what I did: I was testing a program that needed to create some MySQL users, create a database, and make some tables. After the first run the script did this. I found some errors, fixed them, and ran the script again. It errored out because the database and tables already existed. Since this was on a devel machine, the easiest thing to to was: service mysqld stop rm -fv /var/lib/mysql service mysqld start The sysv startup script will automagically create a brand new mysql directory structure and create the 'root' user. Cool! now my program script fails because /var/lib/mysql is owned by mysql.mysql (correct), but the directory permissions are now 700 and not the install default of 755. It can't get to /var/lib/mysql/mysql.sock. IMHO If the /etc/rc.d/init.d/mysqld script will create a structure if one doesn't exist, it should also chmod 755 (rpm install default) the top level directory. Note: my login email address went away yesterday, so I won't get any replies. current is chrismcc |