Raspberry-Pi
什麼取代了mysql-*-5.6?
我正在按照這些說明在 Raspberry Pi 3 上設置 MythTV。其中一個步驟是安裝 mysql(伺服器和客戶端):
sudo apt-get install mysql-server-5.6 ntp libicu55 libqt5sql5-mysql mysql-client-5.6
但是,這失敗了:
Reading package lists... Done Building dependency tree Reading state information... Done Package mysql-client-5.6 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: mariadb-server-core-10.0 mariadb-client-5.5 mariadb-client-10.0 Package mysql-server-5.6 is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: mariadb-server-5.5 mariadb-server-10.0 E: Package 'mysql-server-5.6' has no installation candidate E: Unable to locate package libicu55 E: Package 'mysql-client-5.6' has no installation candidate
如果我相信輸出告訴我的內容,我可以安全地安裝 mariadb 而不是 mysql,一切都會正常工作(我不知道這個假設有多安全)。但即便如此,我也不清楚要安裝哪個版本的 mariadb。沒有對應的5.6,那是不是意味著我需要10?這似乎是一個很大的飛躍,我擔心我最終可能會得到一些不起作用的東西。
MariaDB 是 MySQL 的一個分支,由 MySQL 的原始開發人員在 MySQL 被 Oracle 收購時完成。它是大多數現代發行版中提供的標準 RDBMS,例如 RHEL/CentOS 7。
10.0 版只是 5.5 版的後續版本。MariaDB 的開發人員想要一個乾淨的開始,並清楚地將自己與原始項目區分開來。
MariaDB 被設計為與 MySQL 兼容,並為執行檔使用相同的名稱(
mysql
、mysqldump
、mysql_upgrade
等)。您可以安全地安裝它。