![什么取代了 mysql-*-5.6?](https://linux22.com/image/98968/%E4%BB%80%E4%B9%88%E5%8F%96%E4%BB%A3%E4%BA%86%20mysql-*-5.6%EF%BC%9F.png)
我正在跟进这些说明在 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?这似乎是一个很大的跳跃,我担心我最终可能会得到一些不起作用的东西。
答案1
MariaDB 是 MySQL 的一个分支,是在 MySQL 被 Oracle 收购时由 MySQL 的原始开发人员完成的。它是大多数现代发行版(例如 RHEL/CentOS 7)中提供的标准 RDBMS。
版本 10.0 只是 5.5 的后续版本。 MariaDB 的开发人员希望重新开始,并将自己与原始项目区分开来。
MariaDB 被设计为与 MySQL 兼容,并对可执行文件使用相同的名称(mysql
、mysqldump
、mysql_upgrade
等)。您可以安全地安装它。