Jan-Lukas Else

Thoughts of an IT expert

WordPress with SQLite

Published on in 💭 Thoughts
Updated on
Short link: https://b.jlel.se/s/694
AI generated summary: The author successfully migrated a WordPress site to SQLite, using a simple solution that only requires a single file and a small modification in the wp-config.php file, and warns to make sure that the database file is not accessible from the Internet.

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.

Tags: ,

Jan-Lukas Else
Interactions & Comments