Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#19248 closed defect (invalid)

Incorrect launchctl item for notes in mysql install

Reported by: scott@… Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: Cc: chrswllms@…
Port: mysql5 mysql5-devel

Description (last modified by raimue (Rainer Müller))

I just did a port install mysql5 +server When it was done, it output a small instruction, included below:

###########################################################
# A startup item has been generated that will aid in
# starting mysql5 with launchd. It is disabled
# by default. Execute the following command to start it,
# and to cause it to launch at startup:
#
# sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist

That file does not exist, the closest I have to it is org.macports.mysql5-devel.plist

Change History (12)

comment:1 Changed 15 years ago by raimue (Rainer Müller)

Description: modified (diff)
Owner: changed from macports-tickets@… to ryandesign@…
Port: mysql5 mysql5-devel added

Make sure the correct port is active. Check port installed mysql5 mysql5-devel. If mysql5 is not active, switch by using port deactivate and port activate.

Please remember WikiFormatting.

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

Resolution: invalid
Status: newclosed

The instructions are being output by MacPorts base at the same time that the plist is created. So they cannot be incorrect.

comment:3 in reply to:  2 ; Changed 15 years ago by chrswllms@…

Replying to ryandesign@…:

The instructions are being output by MacPorts base at the same time that the plist is created. So they cannot be incorrect.

I also installed mysql5 and everything's running fine but the plist for mysql5 isn't there:

$ ls /Library/LaunchDaemons/org* /Library/LaunchDaemons/org.macports.apache2.plist

Not sure what the fix is for this but could someone post what the contents of this file should be in the meantime?

comment:4 in reply to:  3 ; Changed 15 years ago by blb@…

Replying to chrswllms@…:

I also installed mysql5 and everything's running fine but the plist for mysql5 isn't there:

$ ls /Library/LaunchDaemons/org* /Library/LaunchDaemons/org.macports.apache2.plist

Not sure what the fix is for this but could someone post what the contents of this file should be in the meantime?

Did you install "mysql5" or "mysql5 +server" as the +server variant is what sets up the plist?

comment:5 in reply to:  4 Changed 15 years ago by chrswllms@…

Replying to blb@…:

Did you install "mysql5" or "mysql5 +server" as the +server variant is what sets up the plist?

I didn't use the +server variant. I ended up installing mysql5 through the install of php5 +mysql5. Is there any way to get the server variant of mysql5 added to my mysql5 installation?

comment:6 Changed 15 years ago by chrswllms@…

FYI - I just did an update of mysql5 using the -server variant but still don't have the file in either /Library/LaunchDaemons or /opt/local/etc/LaunchDaemons.

comment:7 Changed 15 years ago by chrswllms@…

Cc: chrswllms@… added

Cc Me!

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

To add the +server variant to an existing mysql5 install:

sudo port -nf upgrade mysql5 +server

Note: "-server" deselects the server variant (which has no effect since it's deselected by default). "+server" selects the server variant.

comment:9 Changed 15 years ago by chrswllms@…

Perfect. I was doing an update and not an upgrade. That worked.

comment:10 Changed 15 years ago by scott@…

Interesting, I installed mysql5 and forgot the +server variant last night. I ran sudo port upgrade mysql5-devel +server. If all it has to do is a little launchd fiddling, it ended up rebuilding the entire thing. I did not trust it, removed it and started it clean. Is this not the intended behavior? I referenced the correct command as I pulled it from http://www.nabble.com/Forgot-to-add-%2Bvariant-td22877156.html#a22877156

My bash history shows sudo port -d upgrade mysql5-devel +server

comment:11 in reply to:  10 Changed 15 years ago by chrswllms@…

Replying to scott@…:

My bash history shows sudo port -d upgrade mysql5-devel +server

Try it again with the -nf flags.

comment:12 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.