dotfiles/bin/mysql_in_ram.sh
2017-05-11 17:16:45 -04:00

15 lines
291 B
Bash
Executable File

#!/bin/bash
set -v
umount /Volumes/ramdisk
mysql.server stop
killall mysqld
killall mysqld
killall mysqld
killall mysqld
killall mysqld
killall mysqld
diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://2048000`
cp -r /usr/local/var/mysql /Volumes/ramdisk
mysql.server start