MariaDB 128MB Setup

mkdir /etc/mysql
mkdir /etc/mysql/conf.d
vim /etc/mysql/conf.d/lowendbox.cnf

Config

[mysqld]
key_buffer = 16K
max_allowed_packet = 1M
table_cache = 4
sort_buffer_size = 64K
read_buffer_size = 256K
key_buffer_size         = 32M
myisam_sort_buffer_size = 32M
read_rnd_buffer_size = 256K
net_buffer_length = 2K
thread_stack = 64K

Install MariaDB

apt-get install mariadb-server

Original config: https://lowendbox.com/blog/yes-you-can-run-18-static-sites-on-a-64mb-link-1-vps/