安装 MySql 到 Raspberry Pi

Installing MySql to Raspberry Pi

我正在尝试Raspberry Pi 3上安装MySQL。目前我安装了 ApachePHP。我现在需要安装 MySQL,但是当我安装 sudo apt-get install mysql-server php-mysql -y 时,我收到一个 错误 告诉我没有这样的包:
E: Package 'mysql-server' has no installation candidate 完整输出:

pi@raspberrypi:/var/www/html $ sudo apt-get install mysql-server php-mysql -y
Reading package lists... Done
Building dependency tree
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
However the following packages replace it:
  mariadb-server-10.0

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

我想使用 MariaDB 可以解决我的问题。

sudo apt install mariadb-server php-mysql -y