WordPress with SQLite
Philipp’s recent post on WordPress with SQLite reminded me to give the migration of a site I maintain for someone else a second try.
This time I didn’t use the WordPress Performance Lab plugin, but the original solution, which only requires a single file in the wp-content
folder and a small modification in the wp-config.php
file.
First, I created a new MariaDB dump, stopped the containers, copied and modified the files, and used the mysql2sqlite tool to convert the dump to a SQLite database file.
That was basically it.
Done in five minutes. More free resources on my server now and maybe a little less power consumption.
But one important thing: Make sure that the database file is not accessible from the Internet. If you create the SQLite database file with the conversion tool, you may have to create the .htaccess
file yourself.