I've read something about the MySQL interpretation of the GPL licence and I am not sure I understand it.
If I create a proprietary script in php which uses MySQL database for storing and retrieving data (like most php scripts do), do I have to release this php code under GPL or buy their commercial licence?
Thanks!
Tomas
What's the deal with the MySQL GPL licence?
Moderator: General Moderators
for the first, GPL FAQ stated:
Thus you have to purchase the commercial MySQL license to be able to use MySQL client library calls in your proprietary PHP application.
Do not consider this as legal advise, it's just my 0.02$.
but MySQL has made an exception for software released under PHP license:GPL FAQ wrote: ......
However, when the interpreter is extended to provide "bindings" to other facilities (often, but not necessarily, libraries), the interpreted program is effectively linked to the facilities it uses through these bindings. So if these facilities are released under the GPL, the interpreted program that uses them must be released in a GPL-compatible way. The JNI or Java Native Interface is an example of such a facility; libraries that are accessed in this way are linked dynamically with the Java programs that call them.
......
but that's not the case because you're not going to release the program under PHP license, are you?MySQL licensing FAQ wrote: Because PHP and MySQL use different incompatible open source licenses, we have created a special exception to encourage and promote the use of MySQL in the PHP community. MySQL AB gives permission to distribute derivative works that are formed with GPL-licensed MySQL software and with software licensed under version 3.0 of the PHP license. You must obey the GNU General Public License in all respects for all of the code used other than code licensed under version 3.0 of the PHP license.
Thus you have to purchase the commercial MySQL license to be able to use MySQL client library calls in your proprietary PHP application.
Do not consider this as legal advise, it's just my 0.02$.
-
tomfra
- Forum Contributor
- Posts: 126
- Joined: Wed Jun 23, 2004 12:56 pm
- Location: Prague, Czech Republic
And what about if I create a script in php that uses MySQL database, sell the php script to a customer who installs it on their webhosts who has a MySQL server installed. What about the customer? Would they be allowed to use proprietary php scripts that needs MySQL to work if there is no commercial licence installed on that server?
Or I could probably create 2 php files instead of one and include all of the MySQL calls in one of them which would be distributed under the php or GPL licence and all of the other code in another file which would be proprietary. Probably. But that would be a nuisance I could really live without.
Tomas
Or I could probably create 2 php files instead of one and include all of the MySQL calls in one of them which would be distributed under the php or GPL licence and all of the other code in another file which would be proprietary. Probably. But that would be a nuisance I could really live without.
Tomas
-
tomfra
- Forum Contributor
- Posts: 126
- Joined: Wed Jun 23, 2004 12:56 pm
- Location: Prague, Czech Republic
It looks like there is nothing to worry about after all 
From the information I found at http://php.net/manual/en/faq.databases. ... mysql.php5 it seems that the current versions of PHP are using the old LGPL version of MySQL client libraries and they will not be including any MySQL client libraries in PHP 5.
Tomas
From the information I found at http://php.net/manual/en/faq.databases. ... mysql.php5 it seems that the current versions of PHP are using the old LGPL version of MySQL client libraries and they will not be including any MySQL client libraries in PHP 5.
Tomas