Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updated launchd caveats for MySQL

  • Loading branch information...
commit 1ca6b6b042c298e5c8b7b4427966d2315e61beca 1 parent a680b66
Luke Gallagher authored adamv committed
Showing with 14 additions and 3 deletions.
  1. +14 −3 Library/Formula/mysql.rb
17 Library/Formula/mysql.rb
View
@@ -59,9 +59,20 @@ def caveats; <<-EOS.undent
Set up databases with:
mysql_install_db
- Automatically load on login with:
- launchctl load -w #{prefix}/com.mysql.mysqld.plist
-
+ If this is your first install, automatically load on login with:
+ cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents
+ launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
+
+ If this is an upgrade and you already have the com.mysql.mysqld.plist loaded:
+ launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
+ cp #{prefix}/com.mysql.mysqld.plist ~/Library/LaunchAgents
+ launchctl load -w ~/Library/LaunchAgents/com.mysql.mysqld.plist
+
+ Note on upgrading:
+ We overwrite any existing com.mysql.mysqld.plist in ~/Library/LaunchAgents
+ if we are upgrading becuase previous versions of this brew created the
+ plist with a version specific program argument.
+
Or start manually with:
#{prefix}/share/mysql/mysql.server start
EOS
Please sign in to comment.
Something went wrong with that request. Please try again.