无法在 22.04 中安装 MySql-显示“包‘mysql-server’没有安装候选项”

无法在 22.04 中安装 MySql-显示“包‘mysql-server’没有安装候选项”
$ 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

您可以安装 mariadb-server,它是 mysql 的一个分支,因此操作基本相同,包括在数据库中执行查询的命令。

相关内容