如何下载基于 Debian 的 MySql?

如何下载基于 Debian 的 MySql?

我想创建一个数据库,为此我需要 mysql。

我尝试执行这个命令: sudo apt install mysql-server然后我得到了这个:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package mysql-server 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

E: Package 'mysql-server' has no installation candidate

答案1

由于许可证问题,Debian 更改为“mariadb”。

您可以使用该mariadb-server包或者该选项default-mysql-server,这取决于与 mysql 兼容的服务器。

相关内容