#19980: mysql5 failed after upgrade ------------------------------------+--------------------------------------- Reporter: Dormilich@… | Owner: ryandesign@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.7.1 Keywords: | Port: mysql5 mysql5-server ------------------------------------+--------------------------------------- Comment(by ryandesign@…): Replying to [comment:3 Dormilich@…]:
up to now I didn't need to, though the new version was only available after a reboot. You should probably always stop (i.e. port unload) an old version of any server installed by MacPorts before starting (i.e. port load) the new version.
that info should make it into the MAMP Howto … Feel free to edit [wiki:howto/MAMP the MAMP how-to]; anybody can edit the wiki. It currently mentions the longer form "sudo launchctl load -w /Library/LaunchDaemons/org.macports.mysql5.plist"; "sudo port load mysql5-server" is simply a shorter form of that same command.
Of course, those launchctl commands and their "port load" and "port unload" equivalents apply to all MacPorts server ports, not just apache2 and mysql5.
the LaunchDaemon (/Library/LaunchDaemons/org.macports.mysql5.plist) is a symlink to the plist somewhere in the Macports directory (autostart). anyways, installing mysql5-server creates that. Yes, the symlink and the thing it points to were moved from the +server variant of the mysql5 port to the new mysql5-server port, as had been long requested; see #12313.
/opt/local/var/run/mysqld.sock
personal backup (yes, Apple's time machine sometimes proves useful) Ah yes. No, I would not expect a backup of a socket file to be much use.
"/opt/local/bin/mysql not found" (something along that line) Indeed, that's the purpose of deactivating a port -- to remove its files from their places within /opt/local. :)
-- Ticket URL: <http://trac.macports.org/ticket/19980#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS