Skip to content

Instantly share code, notes, and snippets.

@madlep
Created May 25, 2012 03:38
Show Gist options
  • Save madlep/2785616 to your computer and use it in GitHub Desktop.
Save madlep/2785616 to your computer and use it in GitHub Desktop.
beef up default homebrew mysql install
#!/usr/bin/env bash
set -e
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
rm /usr/local/var/mysql/ib_logfile*
cp /usr/local/Cellar/mysql/5.5.19/support-files/my-innodb-heavy-4G.cnf /usr/local/etc/my.cnf
sed -i -e 's/innodb_buffer_pool_size.*/innodb_buffer_pool_size = 4G/' /usr/local/etc/my.cnf
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment