【心得】深入MySQL 的授權



贊助商連結


linux_xp
2005-12-03, 03:25 AM
關於 MySQL 授權的祥細情況,眾說紛紜,真正了解者甚少
其實 MySQL 官方都有詳細文件可以參考
我們需要的只是適當的中文翻譯

常見的錯誤觀念如:


MySQL 是 open source, 與授權方式無關, 商業用收費也不表示它不是 Free Software(not Price Free)

http://www.mysql.com/company/legal/...ce-license.html

"To all free software enthusiasts we
recommend our products under the *GPL* license."


上面這個是常見的「斷章取義」錯誤觀念
為什麼錯誤?∼底下會逐步解釋

-----------------------------------------------------------

要了解 MySQL 的詳細授權情況
首先我們必須知道 MySQL 到底有哪些授權

資料來源:MySQL Licensing Policy FAQ (http://www.mysql.com/company/legal/licensing/faq.html)



What is MySQL's software licensing model?

MySQL uses a "dual licensing" business model. Under this model, users may choose to use MySQL products under the free software/open source GNU General Public License (commonly known as the "GPL") or under a commercial license.

With the GPL license, MySQL is available free of charge. Users may download the software for free and modify, integrate and distribute it. However, GPL users must abide by the rules of the GPL, which stipulate that if a MySQL-based application is redistributed, the complete source code for this application must also be open and available for redistribution.

MySQL AB offers a commercial license for organizations that do not want to release the source code for their application. Commercial license customers get a commercially supported product with a level of assurance from MySQL AB, without the requirement that their MySQL-based software must be "open sourced". MySQL is able to provide a commercial license because it has full ownership of the MySQL code.

MySQL's dual licensing increases freedom in two ways: first, it encourages the growth of free software by licensing MySQL under the GPL; second, it makes it possible to use our software in situations where the GPL is not applicable.



MySQL 的軟體授權模式為何?

MySQL 使用「雙授權條約」模式,在這個模式下,使用者可以選擇如何使用 MySQL 產品,這將決定 MySQL 是自由的 GPL 授權,或者商業授權。

在 GPL 授權下,MySQL 是自由且免費的,使用者可以免費下載 MySQL,並且可以修改它的原始碼,重新整合後再散佈。不管如何,GPL 使用者必須履行來自 GPL 授權賦加的條件,亦即規定假如一個基於 MySQL 而運作的應用程式被重新散佈,那麼這個應用程式的完整的原始碼,也必須可以被自由取得。 (譯註:此部分符合 GPL 授權條約)

MySQL AB 另外提供一個商業授權,給那些不願意開放應用程式原始碼的組織,購買商業授權的顧客可以獲得商業版的產品技術支援保證。否則的話,任何基於 MySQL 運作的軟體,都必須開放原始碼。MySQL 之所以能提供商業授權,是因為 MySQL 組織擁有 MySQL 程式碼的一切版權。

(譯註:即便是 GPL 授權的軟體,原始作者在法律上仍擁有版權,甚至專利權,軟體專利權至今仍未廢除,作者擁有當地法律上的一切著作權,相關資料可參考 GPL 授權的研究文章)。

MySQL 的「雙授權條約」模式,對雙方都有利。第一,它鼓勵自由軟體的發展;第二,它使的即便 GPL 不適用的情況下,使用我們的軟體也成為可能。


MySQL 和多數軟體一樣,是採用雙授權的方式
亦即大家印象中的「免費版」和「商業版」

授權的方式,決定在於 user 使用 MySQL 的「方法」
而非 user 自己決定要採用哪種授權

如果要簡明扼要的解釋 MySQL 「雙授權模式」是如何運作的?

簡單的說,
如果應用程式本身是 GPL,MySQL 也是 GPL。

如果應用程式是商業軟體,或者自行開發,並且不想開放原始碼,則必須購買 MySQL 商業授權。

-----------------------------------------------------------------

再來往下看關於「免費版」授權的部份

MySQL Open Source License (http://www.mysql.com/company/legal/licensing/opensource-license.html)



Our software is 100% GPL (General Public License); if yours is 100% GPL compliant, then you have no obligation to pay us for the licenses. This is a great opportunity for the open source community and those of you who are developing open source software.



我們的軟體是 100% GPL;假如你的(軟體)也是100% GPL 的話,你便不需要在法律上付錢給我們買授權。這對開放原始碼社群,或者像你們這樣發展開源軟體的人來說,都是一個很棒的機會。

MySQL Open Source License 其第一段明確指出:

此授權僅適用於「應用軟體」為 GPL 的情況下,否則就必須購買商業版授權。

此處的「應用軟體」,指的是需要靠 MySQL 才能運作的軟體,例如:資料庫前端系統,論壇程式.....等等

如果這些軟體,並非 GPL 授權,也就是非自由軟體 (開放原始碼,允許任意修改、散佈),便不能適用於 MySQL Open Source License。

---------------------------------------------------------

普遍認為 MySQL 可以內建於 Linux 或者 FreeBSD 中
那麼它必定是自由軟體?

其實不然∼

第一,必須了解到即便是 Linux,某些 distro 內包進的套件,也不全然是自由軟體。

以 Debian 為例,它是一套非常嚴僅的 Linux distro,在它的套件中,非常刻意的去區分四大體系: main(自由軟體)、 contrib (本身是自由軟體但相依的套件不是自由軟體)、 non-free (非自由軟體)、 non-US (加密或者有專利權的軟體)。

第二,MySQL 本身是採用雙授權模式,它是 GPL 或者 商業授權,完全取決於使用者怎麼用它。

當 MySQL 被包進 Linux 或 FreeBSD 之時,它還沒開始使用,或者周邊搭配相依套件皆是 GPL 軟體,因此在這部份並無不妥。

但如果使用者加入非自由軟體,搭配 MySQL 使用,此時它的授權型態即發生轉變,必須購買商業授權。


以上為針對 MySQL 授權的研究心得結果,如有錯誤歡迎指正

當然,MySQL 並不是一家喜歡打官司的公司,即便是打官司如吃飯的微軟,對於家用盜版者也是睜一隻眼閉一隻眼。因此雖有法律實質意義存在,個人使用只能說還是道德約束為主,但企業上使用,打開門來做生意的,永續經營的,則必須重視版權問題。

:)

贊助商連結


CapriSkye
2005-12-03, 07:34 AM
呵呵你還特別為這個寫一篇文章喔?
其實不用想太多,反正他就是 open source

ericlien
2005-12-03, 11:19 AM
麻煩不要倒因為果 :|||:
http://fsoss.fcu.org.tw/XZGov-fsoss/oss-lecture-no5-02.html