Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

Our Company wants to use MySQL for one software product. This product is not open-source. Is it legal to use it freely ?

If not, how about PostgreSQL ? Is this okay for our purpose ?

share|improve this question
That depends, what are your requirements? I suggest you read tinyurl.com/SO-hints and stackoverflow.com/questions/how-to-ask and try again. –  jcolebrand Jul 18 '11 at 5:48
Have you read throught he legal FAQ? mysql.com/about/legal/licensing/oem –  DrColossos Jul 18 '11 at 8:03
Oh and just a note... you're free to use either one for whatever if you aren't modify the source of either MySQL or PostgreSQL or distributing them. –  xenoterracide Aug 16 '11 at 4:55

3 Answers 3

up vote 8 down vote accepted

Postgres (not Postgre) is absolutely free. You can do anything you want with it.

For MySQL you will most probably need a commercial license if you plan to redistribute your application with a bundled database. Not sure if this is required if your application just needs MySQL but I think this also requires a commercial licenses because it is considered a derivative work

But I'm not a lawyer. So if you want to be 100% sure, talk to Oracle and a lawyer.

share|improve this answer
For completeness: postgresql.org/about/licence (only requirement is to place that two paragraphs in all copies) and wiki.postgresql.org/wiki/… –  Grzegorz Szpetkowski Jul 18 '11 at 13:17

First of all, the amount of information you've just provided isn't enough to clearly understand what exacly you mean by "using MySQL for one software product".

Of course, you're free to use the MySQL Community Edition along with any proprietary, closed-source products you see fit. But as I understand, your company wants to integrate the database server into your application, hence the need to know about licencing issues.

In this case, PostgreSQL comes with a much more flexible licence. While MySQL Community Edition uses the adorable and respectable GPL (GNU Public Licence) which prohibits you from integrating it within a closed-source product, PostgreSQL comes with PostgreSQL Licence, which is also an open-source licence, but much like the BSD licence. Thus, it's much more permissive, especially for use along with a closed-source product. In fact, it's being used in some closed-source products as it is, like the underlying DB and DWH servers of Yahoo, etc.

Just to summarize and clarify: You are free to mix proprietary code with original PostgreSQL sources, and sell or distribute for free the resulting product in either open or closed source. So, I'm assuming that's the style of licence you're looking for.

That being said, I have no intention to start a flame war, but PostgreSQL is a much more capable and stable RDBMS, so it's a much better option for any critical, business oriented application.

Licence-wise, and also for usual technical reasons, I strongly suggest PostgreSQL. Check the licence text, and the generic licence template out.

share|improve this answer

As licenses go, PostgreSQL's BSD license is about the most permissive license you can find short of just public domain code. You are free to use it in a closed source product and distribute it without having to pay royalties or provide the source code to your product. You don't own anybody anything and you don't have to pay lawyers to look at any edge cases. Take it, use it.

But aside from the legal considerations, technically PostgreSQL is, in my opinion, a far superior database, architecturally, performance-wise, and most importantly from a pure data integrity standpoint. Many people choose a database because it's easy. If your data doesn't mean much to you, so be it. But anyone who really takes their data seriously will tell you that PostgreSQL is hands down one of the finest databases there is. Forget that it's free. It's built like a Cummins diesel, you can just load it down and it will just keep going.

I've worked with many different relational databases over the last ten years. I spent years using MySQL, and still use it. I think MySQL is a perfectly fine RDBMS. But I've always felt like PostgreSQL is in a league all its own. There are so many things I can say about it, from its elegant and solid design to its incredible durability to its excellent documentation. PostgreSQL is the foundation of our company's CRM system, accounting system, reporting, website, DNS, large parts of our IT infrastructure. For six years it has run day and night, 24/7, powering all these systems without incident. It's just a work horse.

share|improve this answer
To further comment on the diesel power of pgsql, we normally handle 10 to 30 parallel requests on our big 48 core write master at work, most of those inserts and updates, with a few selects. An import process we have has some weird race condition where it starts throwing 300 select queries in parallel at that same server hitting it with 600 of those a second. The server goes from a midday load of 3 to 6 to a load of ~300, with all cores spinning at 95% or so. The result? Our site gets a little slow. pages that normally take 0.5 seconds now take 1.5 seconds. Updates go from 0.1s to 1s. –  Scott Marlowe Sep 26 '11 at 20:12

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.