Skip to content
Run mysql on a RAM disk for linux
Shell
Branch: master
Clone or download
Latest commit b41edb5 Sep 18, 2017

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Sep 18, 2017
README.md Typos Sep 18, 2017
mysqlram Add files via upload Sep 18, 2017

README.md

mysqlram

Run mysql on a RAM disk for linux

This contains a script that can be run at boot or shutdown. At boot time it will copy the mysql database to ram disk At shut down or reboot it will copy the database from ram disk to disk This might be a nice option to fight sd card wear on raspberry-pi's and clones.

Installation

Copy mysqlram to /etc/init.d maybe it is necessary to chmod +x the file

Now run

sudo update-rc.d mysqlram defaults

Warning

If a database is run on a RAM disk and the pc loses power all changes since the last boot will be lost. So use on your own risk.

You can’t perform that action at this time.