
WordPress has announced that it will begin testing using the SQLite database in WordPress core. SQLite was initially supported in WordPress using a standalone plugin.
WordPress with SQLite Database
WordPress proposes that SQLite should be included in core instead of a plugin to avoid the complexities of migrating data from one database to another. While speaking in WordCamp US 2022, WordPress founder Matt Mullenweg said that he thinks SQLite will pair well with WordPress’s thoughts on longevity (listen from minute 9:00 ).
Those championing for the inclusion of SQLite in WordPress core say that it comes with benefits like improved performance, reduced energy consumption, and is easier to use
What remains undecided at the moment is whether WordPress should provide an option during installation for users to select SQLite or MySQL database. And if your hosting server does not support SQLite, then MySQL be the only installation option.
A suggestion has also been put forward by the WordPress Performance team to have MySQL installed by default, any user who is interested in SQLite can manually enable it by adding define( ‘DB_ENGINE’, ‘sqlite’ ); in the wp-config.php file.
WordPress developers who do not agree with the idea of introducing SQLite in WordPress core are mainly concerned about hosting support, migration process or converting from one database to another, compatibility, and scalability. They feel that this could be better implemented with a plugin rather than being in WordPress core. They suggest that if the plugin grows to a million plus installations, then it would support the desire for SQLite to be introduced in WordPress core. As of publishing this article, the plugin had 30 installations.
Note: Installing the SQLite Database Integration plugin will create a new database folder in /wp-content/database and switch your website to using SQLite. You can delete the plugin from the plugins folder using FTP or cPanel file manager if you are not able to access the admin dashboard of your website after starting the installation process.
Before you leave, Subscribe to our Newsletter to be updated via email when Blogging Tools you use to run your blog release new features or make critical changes. For any question about this post, or anything else related to website technologies, we are responding on Reddit or comment below.
Leave a Reply