Bug #4154 | Unable to drop tables - possible directory permission bug | ||
---|---|---|---|
Submitted: | 15 Jun 2004 22:48 | Modified: | 16 Jun 2004 18:17 |
Reporter: | Dwight Shih | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.0.20-standard | OS: | MacOS (Mac OS X 10.2.8 (6R73)) |
Assigned to: | CPU Architecture: | Any |
[15 Jun 2004 22:48]
Dwight Shih
[16 Jun 2004 12:02]
Hartmut Holzgraefe
I tested the 4.0.20-standard binaries on Mac OS X 10.3.4 without problems. Even if i remove all group rights from the data directory all still works fine.
[16 Jun 2004 12:18]
Dwight Shih
Perhaps it has something to do with my installation. Do you have any suggestions of where to poke?
[16 Jun 2004 12:22]
Hartmut Holzgraefe
All the information you pasted seems to be ok, my only idea is that it might be a permission bug in Mac OS X 10.2.8 that is fixed in 10.3.4 ...
[16 Jun 2004 14:04]
Dwight Shih
It has to do with the script that I use to run mysqld_safe local/mysql 15 $ ls -ld /usr/local/bin/mysqld_safe -rwsr-sr-x 1 mysql mysql 86 Jun 12 2003 /usr/local/bin/mysqld_safe* local/mysql 16 $ cat !$ cat /usr/local/bin/mysqld_safe #!/bin/sh cd /usr/local/mysql/ nohup ./bin/mysqld_safe "$@" > /tmp/mysql$$.out 2>&1 & If I explicitly ( cd /usr/local/mysql ; ./bin/mysqld_safe ) as myself, then it works. If I run /usr/local/bin/mysqld_safe as the mysql user, then it works. But if I run /usr/local/bin/mysqld_safe as myself, then it fails (I've tried the /usr/local/bin/mysqld_safe script with both 4755 and 6755 permissions). Thanks for you help.
[16 Jun 2004 18:17]
Hartmut Holzgraefe
Ok, thats it then. With our default permission settings you always have to start the mysqld server as the same user. That's what mysqld_safe's --user option is for ...