The MariaDB open-source license—GNU GPL v2 with FOSS exceptions—sets the legal terms for freely using, modifying, and distributing MariaDB Server.
MariaDB Server is released under the GNU General Public License version 2 (GPL-2.0) with the FLOSS License Exception. This ensures the database is free to use, study, share, and improve while permitting dynamic linking from proprietary applications.
GPL-2.0 requires that any derivative work containing MariaDB source code be distributed under the same license. If you only connect to MariaDB through a client library, the FLOSS exception removes this obligation, allowing closed-source applications to use MariaDB safely.
Run SELECT VERSION(), @@version_comment;
. The version_comment
string usually contains “GPL” or similar wording, confirming that you are running a GPL-licensed build.
Yes, if you link dynamically via the client libraries covered by the FLOSS exception. Embedding or statically linking server code requires either open-sourcing your derivative work or purchasing a commercial license from MariaDB Inc.
Interact with MariaDB over its client protocol or REST layer. Avoid copying server source code into your project unless you intend to license your code under GPL-2.0 too.
Typical scenarios include SaaS products that store data in MariaDB, desktop apps that ship with a MariaDB client, and backend services that connect over TCP. All these use MariaDB as "Service over a network" without distributing server code, so GPL obligations do not propagate.
The PostgreSQL License is permissive and imposes minimal obligations. MariaDB’s GPL-2.0 is copyleft: derivative works must remain open-source. Choose based on your project’s distribution model.
License violations can lead to loss of distribution rights or legal action. Always comply by providing source code when required or by obtaining a commercial license.
Yes. The GPL-2.0 license allows unlimited production use without fees as long as you respect its terms.
No. If your app accesses MariaDB over a network and you do not distribute the server code, the GPL’s "ASP loophole" means you can keep your code proprietary.
Static linking removes the FLOSS exception. Either keep the link dynamic or obtain a commercial license.