Skip to content

Instantly share code, notes, and snippets.

@tosik
Created October 4, 2012 06:23
Show Gist options
  • Select an option

  • Save tosik/3831768 to your computer and use it in GitHub Desktop.

Select an option

Save tosik/3831768 to your computer and use it in GitHub Desktop.
to tmpfs
sudo mkdir -p /tmpfs/mysql
sudo ./mount-ram /tmpfs/mysql 500
sudo chown `whoami`:admin /tmpfs/mysql
mysql.server stop
cp -rfp /usr/local/var/mysql/* /tmpfs/mysql/
mv /usr/local/var/mysql /usr/local/var/mysql.orig
ln -s /tmpfs/mysql /usr/local/var/mysql
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
mysql.server start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment