dotfiles/home/bin/mysql_in_ram.sh

12 lines
246 B
Bash
Raw Normal View History

#!/bin/bash
set -v
2017-05-11 21:16:45 +00:00
umount /Volumes/ramdisk
mysql.server stop
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