How to auto-load MySQL on startup on OS X Yosemite / El Capitan

This is what fixed it: First, create a new file: /Library/LaunchDaemons/com.mysql.mysql.plist <?xml version=”1.0″ encoding=”UTF-8″?> <plist version=”1.0″> <dict> <key>KeepAlive</key> <true /> <key>Label</key> <string>com.mysql.mysqld</string> <key>ProgramArguments</key> <array> <string>/usr/local/mysql/bin/mysqld_safe</string> <string>–user=mysql</string> </array> </dict> </plist> Then update permissions and add it to launchctl: sudo chown root:wheel /Library/LaunchDaemons/com.mysql.mysql.plist sudo chmod 644 /Library/LaunchDaemons/com.mysql.mysql.plist sudo launchctl load -w /Library/LaunchDaemons/com.mysql.mysql.plist

Autostart MySQL Server on Mac OS X Yosemite/El Capitan

@dcc was very close. This is how MySQL autostarts again on Yosemite: The com.mysql.mysql.plist in /Library/LaunchDaemons: <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>KeepAlive</key> <true/> <key>Label</key> <string>com.mysql.mysqld</string> <key>ProgramArguments</key> <array> <string>/usr/local/mysql/bin/mysqld_safe</string> <string>–user=mysql</string> </array> </dict> </plist> Additionally I’ve changed the permissions based on this answer sudo chown root:wheel /Library/LaunchDaemons/com.mysql.mysql.plist sudo chmod … Read more

How to get Ruby / Homebrew / RVM to work on Yosemite?

This error can easily be fixed in the following steps: 1) Open terminal 2) Type nano /usr/local/Library/brew.rb 3) In the first line change “1.8″ to “Current”, so it should look like this: #!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0 via http://blog.ic3man.gr/2014/06/homebrew-ruby-bad-interpreter-no-such-file-or-directory/

`Apache` `localhost/~username/` not working

Looks like you need to uncomment the following: #LoadModule userdir_module libexec/apache2/mod_userdir.so and #Include /private/etc/apache2/extra/httpd-userdir.conf Then in httpd-userdir.conf you may need to uncomment: #Include /private/etc/apache2/users/*.conf Lastly you would need to create /private/etc/apache2/users/kevin.conf if it doesn’t exist. I think it should look something like this: <Directory “/Users/kevin/Sites/”> Options Indexes MultiViews AllowOverride None Require all granted </Directory> Make … Read more