You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f3d22fc
Browse filesBrowse the repository at this point in the historyBrowse files
Run WordPress on SQLite instead of MySQL or MariaDB.
13
13
14
14
== Description ==
15
15
16
+
**Run WordPress on SQLite.**
17
+
16
18
The SQLite plugin is a community, feature plugin. The intent is to allow testing an SQLite integration with WordPress and gather feedback, with the goal of eventually landing it in WordPress core.
17
19
20
+
The plugin replaces the default MySQL database layer with an SQLite-backed implementation. WordPress continues to use its standard `wpdb` API while the plugin translates and emulates MySQL queries for SQLite.
21
+
22
+
= What the plugin provides =
23
+
24
+
* **No database server.** Your site's data is stored in a local SQLite database.
25
+
* **Guided setup.** The installation screen checks for the required PHP extension, write access, and conflicting database drop-ins before enabling SQLite.
26
+
* **Purpose-built compatibility.** A MySQL parser and emulation layer adapt MySQL syntax and behavior for SQLite.
27
+
* **Useful diagnostics.** SQLite details appear in Site Health, and Query Monitor is supported.
28
+
29
+
**Important:** Enabling SQLite creates a separate, empty database; it does not migrate an existing site. If you enable it on a site that uses MySQL or MariaDB, WordPress will ask you to set up the site again. Disabling the plugin reconnects WordPress to the previous database with its data unchanged. Changes made while using SQLite are not transferred.
30
+
31
+
The plugin requires the PDO SQLite PHP extension and SQLite 3.37.0 or newer.
32
+
18
33
== Frequently Asked Questions ==
19
34
20
35
= What is the purpose of this plugin? =
21
36
22
-
The primary purpose of the SQLite plugin is to allow testing the use of an SQLite database, with the goal to eventually land in WordPress core.
37
+
The primary purpose of the plugin is to test WordPress with SQLite and gather feedback, with the goal of eventually including the integration in WordPress core.
23
38
24
-
You can read the original proposal on the [Make blog](https://make.wordpress.org/core/2022/09/12/lets-make-wordpress-officially-support-sqlite/), as well as the [call for testing](https://make.wordpress.org/core/2022/12/20/help-us-test-the-sqlite-implementation/) for more context and useful information.
39
+
Read the original proposal on the [Make WordPress Core blog](https://make.wordpress.org/core/2022/09/12/lets-make-wordpress-officially-support-sqlite/) and the [call for testing](https://make.wordpress.org/core/2022/12/20/help-us-test-the-sqlite-implementation/) for more context.
25
40
26
41
= Can I use this plugin on my production site? =
27
42
28
-
Per the primary purpose of the plugin (see above), it can mostly be considered a beta testing plugin. To a degree, it should be okay to use it in production. However, as with every plugin, you are doing so at your own risk.
43
+
Yes, but keep reliable backups and make sure SQLite is a good fit for your site's traffic. SQLite supports concurrent reads but allows only one writer at a time, so MySQL or MariaDB may be a better fit for sites with heavy concurrent write traffic. Test your workload, themes, and plugins before switching.
44
+
45
+
= Will this plugin migrate my existing site to SQLite? =
46
+
47
+
No. Enabling SQLite starts a fresh WordPress installation in a separate database. Your existing MySQL or MariaDB database remains unchanged, but its content is not copied to SQLite.
48
+
49
+
Disabling the plugin reconnects WordPress to the previous database. Content created while using SQLite is not transferred back.
50
+
51
+
= What does the plugin require? =
52
+
53
+
In addition to the WordPress and PHP versions listed above, the plugin requires the PDO SQLite PHP extension and SQLite 3.37.0 or newer. The setup screen also needs write access to the `wp-content` directory and will detect conflicting database drop-ins.
29
54
30
55
= Where can I submit my plugin feedback? =
31
56
32
-
Feedback is encouraged and much appreciated, especially since this plugin is a future WordPress core feature. If you need help with troubleshooting or have a question, suggestions, or requests, you can [submit them as an issue in the SQLite GitHub repository](https://github.com/wordpress/sqlite-database-integration/issues/new).
57
+
Feedback helps improve the integration. For troubleshooting, questions, suggestions, or feature requests, [open an issue in the SQLite GitHub repository](https://github.com/wordpress/sqlite-database-integration/issues/new).
33
58
34
59
= How can I contribute to the plugin? =
35
60
36
-
Contributions are always welcome! Learn more about how to get involved in the [Core Performance Team Handbook](https://make.wordpress.org/performance/handbook/get-involved/).
61
+
Contributions are welcome through the [SQLite Database Integration repository on GitHub](https://github.com/WordPress/sqlite-database-integration).
37
62
38
63
= Does this plugin change how WordPress queries are executed? =
39
64
40
-
The plugin replaces the default MySQL-based database layer with an
41
-
SQLite-backed implementation. Core WordPress code continues to use
42
-
the wpdb API, while queries are internally adapted to be compatible
43
-
with SQLite syntax and behavior.
65
+
Yes. The plugin replaces the default MySQL-based database layer with an SQLite-backed implementation. WordPress continues to use the `wpdb` API, while queries are internally adapted to SQLite syntax and behavior.
44
66
45
67
== Changelog ==
46
68
47
-
= 3.0.0-rc.9 =
69
+
= 3.0.0 =
70
+
71
+
**SQLite Database Integration 3 is here! 🎉**
72
+
73
+
This release introduces an **all-new SQLite database driver for WordPress**, rebuilt from the ground up. Its purpose-built MySQL lexer, parser, and emulation layer deliver broader compatibility, more accurate behavior, and a stronger foundation for future improvements.
74
+
75
+
The 3.0 release spans nearly two years of work, featuring [160 pull requests](https://github.com/WordPress/sqlite-database-integration/milestone/3?closed=1) and 1,075 commits from 15 contributors.
For more information about the new driver and its architecture, read the [driver announcement](https://make.wordpress.org/playground/2025/06/13/introducing-a-new-sqlite-driver-for-wordpress/).
71
92
72
-
= 3.0.0-rc.7 =
93
+
**Modular design**
73
94
74
-
* Preserve configured SQLite journal mode in driver wrapper ([#447](https://github.com/WordPress/sqlite-database-integration/pull/447))
The project was redesigned as a set of focused packages, separating the core driver from its WordPress integration:
76
96
77
-
= 3.0.0-rc.6 =
97
+
* [SQLite Database Integration](https://github.com/WordPress/sqlite-database-integration/tree/v3.0.0/packages/plugin-sqlite-database-integration): The **WordPress plugin** powered by MySQL on SQLite.
98
+
* [MySQL on SQLite](https://github.com/WordPress/sqlite-database-integration/tree/v3.0.0/packages/mysql-on-sqlite): A standalone **PDO MySQL drop-in** for running MySQL-based PHP applications on SQLite.
99
+
* [MySQL proxy](https://github.com/WordPress/sqlite-database-integration/tree/v3.0.0/packages/mysql-proxy) (experimental): A **MySQL wire protocol bridge** to PDO-compatible drivers for clients outside PHP.
78
100
79
-
* Don't take a write lock for SET statements (fixes "database is locked" on connect) ([#443](https://github.com/WordPress/sqlite-database-integration/pull/443))
80
-
* Add REVERSE() to user defined functions ([#434](https://github.com/WordPress/sqlite-database-integration/pull/434))
81
-
* LALR(1) parser from official MySQL grammar ([#429](https://github.com/WordPress/sqlite-database-integration/pull/429))
101
+
This architecture opens the driver to new integrations, applications, and development tools beyond WordPress.
82
102
83
-
= 3.0.0-rc.5 =
103
+
**Upgrading to 3.0**
84
104
85
-
* Default SQLite connections to WAL ([#405](https://github.com/WordPress/sqlite-database-integration/pull/405))
105
+
Upgrading an existing SQLite site is straightforward:
86
106
87
-
= 3.0.0-rc.4 =
107
+
1. **Back up** your SQLite database.
108
+
2. **Update the plugin** to version 3.0.
88
109
89
-
* Normalize BIT column default literals ([#439](https://github.com/WordPress/sqlite-database-integration/pull/439))
90
-
* Optimize MySQL lexer (~2× speedup) ([#424](https://github.com/WordPress/sqlite-database-integration/pull/424))
91
-
* Fix `RAND()` function behavior ([#363](https://github.com/WordPress/sqlite-database-integration/pull/363))
0 commit comments