Opened 15 years ago

Closed 15 years ago

#19451 closed defect (wontfix)

BUG:Port cant execute mysqld_safe

Reported by: naruto97d@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: mysql5 Cc:
Port: mysql5

Description

I cant execute mysqld_safe after i run mysql_install_db without sudo permission.

Attachments (1)

mysqld_safe.patch (613 bytes) - added by naruto97d@… 15 years ago.

Download all attachments as: .zip

Change History (6)

Changed 15 years ago by naruto97d@…

Attachment: mysqld_safe.patch added

comment:1 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to ryandesign@…
Port: mysql5 added

comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

I couldn't tell from your message: which did you run without sudo -- mysqld_safe or mysql_install_db? As far as I know, you should run both commands with sudo -- the former should run as root while the latter should run as the mysql user -- so I'm not surprised you're running into trouble if you don't do this.

Your patch just changes a "mkdir" into a "mkdir -p", which would create intermediate directories. I do not see how this would relate to your permissions issues. However, this may be a useful patch generally, which you should feel free to file in the MySQL issue tracker.

comment:3 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:4 in reply to:  2 Changed 15 years ago by naruto97d@…

Replying to ryandesign@…:

I couldn't tell from your message: which did you run without sudo -- mysqld_safe or mysql_install_db? As far as I know, you should run both commands with sudo -- the former should run as root while the latter should run as the mysql user -- so I'm not surprised you're running into trouble if you don't do this.

Your patch just changes a "mkdir" into a "mkdir -p", which would create intermediate directories. I do not see how this would relate to your permissions issues. However, this may be a useful patch generally, which you should feel free to file in the MySQL issue tracker.

sry i didnt tell the thing clearly. It was, when i execute the first step mysql_install_db,i forgot to do it with sudo permission,but i can do it,and tells nothing wrong.but when i execute the 2nd step:mysqld_safe,it'll always tells that cant do it,it didnt create all file and dirs correctly, especially sub dir. so i need to mkdir. i hope it can be much better and make sub dir automaticly. so i change it from mkdir to mkdir -p.

comment:5 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: wontfix
Status: newclosed

I'm not going to do anything with this in MacPorts. The port behaves correctly if you use the correct setup procedure. If you feel your change is useful, then it would be useful generally, and not just for MacPorts users, so you should send it to the developers of MySQL.

Note: See TracTickets for help on using tickets.