Stands for MySQL RAM Disk. Pronounced like the French swear word.
Spawns a temporary MySQL instance off a RAM disk. Useful to speed up large test suites, your machine usable while running them, and preserve your SSD's life!
Only works under Mac OS X.
$ gem install mrd
$ mrd
==>
Created Ramdisk at /dev/disk4
Formatted Ramdisk at /dev/disk4
Mounted Ramdisk at /Volumes/MySQLRAMDisk
Starting MySQL server
MySQL is now running.
Configure you client to use the root user, no password, and the socket at '/Volumes/MySQLRAMDisk/mysql.sock'.
Just close this terminal or press ^C when you no longer need it.
Then, if using Rails, point your database.yml
to the temporary SQL server:
test:
...
socket: /Volumes/MySQLRAMDisk/mysql.sock
$ mrd -h
Usage: [options]
-v, --verbose Run verbosely
-s, --size SIZE Size of RAM disk in MB (default 1024)
-p, --port PORT Run MySQL listening on specified port
-l, --log Create mysql.log
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request