Picking a self-hosted database in 2026 comes down to one question: when does it force you to migrate? SQLite holds until about one write-heavy app server (~10 GB, single writer). PostgreSQL 18 is the default that almost never makes you move. MariaDB 12.3 LTS earns its spot mainly when you already live in the MySQL world.
Key Takeaways
- SQLite serializes writes, so one busy app server is its real ceiling.
- Postgres 18 is the default that almost never makes you migrate later.
- MariaDB fits best when you already run MySQL tooling.
- SQLite runs with no daemon and almost no RAM, while Postgres needs tuning.
- The SQLite to Postgres jump is a planned move, not an emergency.
What are the best self-hosted databases for web apps in 2026?
For a self-hosted web app, three engines cover almost every case: PostgreSQL is the do-everything default, SQLite is the embedded single-file engine, and MariaDB is the MySQL-compatible community fork. All three are open source and free to run on your own box.






