The most popular open-source alternative to Azure SQL Database is TiDB, with 40.8k GitHub stars.
Other open-source alternatives to Azure SQL Database are OceanBase, MariaDB Server, YDB and CrateDB.
Most Azure SQL Database alternatives here are Databases tools.
None of these projects names Azure SQL Database itself, but each does the same job; its own description is shown under it.
Stars and activity updated 4 December 2026.
Questions about Azure SQL Database alternatives
Is there an open-source alternative to Azure SQL Database?
Yes. 5 open-source projects can replace Azure SQL Database, for example TiDB, OceanBase and MariaDB Server. They do the same job as Azure SQL Database, as their own documentation describes.
What is the best open-source alternative to Azure SQL Database?
TiDB (40.8k GitHub stars) is the most popular open-source alternative to Azure SQL Database on GitHub. YDB has the most recent code changes. The best choice depends on your needs: compare them side by side, for example TiDB vs OceanBase.
Are the open-source alternatives to Azure SQL Database free?
All of the 5 projects listed here are free to use under an open-source license, with no license fee: 4 permissive (such as Apache-2.0), 1 copyleft (such as GPL-2.0). Running software on your own server still costs hosting and upkeep, and many projects also sell a hosted version.