$ 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 的一个分支,因此操作基本相同,包括在数据库中执行查询的命令。