MySQL temporary table to RAM

Best practise

Check ID/GID for MySQL

Create and mount

Add this line under [mysqld] into my.cnf configuration file:

restart mysql

Check if all is applied:

Test

 


Quick methodcareful! This might make the server run out of memory!!!

Check what’s the RAM filesystem on the server

=> /dev/shm

Add this to my.cnf file:

restart mysql

Check if all is applied:

 

Test: