Skip to content

Create an in-memory (ramdisk) mysql instance for fast performance when testing etc.

Notifications You must be signed in to change notification settings

brianwebb01/mysql_ramdisk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

In-Memory MySQL script

You may decide that you want to run mysql in memory for accelerated testing etc. This python script (originally found here) will take care of the specifics for you.

Script Options

Description Shorthand Option Longhand Option Default
Kill the ramdisk -k --kill-ramdisk none
Path to the ramdisk -p --path-to-ramdisk /dev/disk3 on OSX or /mnt/ramdisk on Linux
Create the ramdisk -c --create-ramdisk none
Ramdisk size -s --ramdisk-size 128 MB
Disable Linux App Armor -a --disable-apparmor none
Install MySQL in memory and start it -m --with-mysql none

Create an in-memory MySQL DB

./mysql-ramdisk.py --create-ramdisk --with-mysql

Connect to that DB

mysql --socket=/tmp/mysql.sock

Destroy the DB

./mysql-ramdisk.py --kill-ramdisk

About

Create an in-memory (ramdisk) mysql instance for fast performance when testing etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages