Raspberry pi 将MySql安装到Raspberry Pi

Raspberry pi 将MySql安装到Raspberry Pi,raspberry-pi,raspberry-pi3,mysql-connector,apt,Raspberry Pi,Raspberry Pi3,Mysql Connector,Apt,我正在尝试在树莓Pi3上安装MySQL。目前我已经安装了Apache和PHP。我现在需要安装MySQL,但是当我安装sudo apt get install MySQL server php MySQL-y时,我收到一个错误告诉我没有这样的包: E:包“mysql服务器”没有安装候选程序 完整输出: pi@raspberrypi:/var/www/html $ sudo apt-get install mysql-server php-mysql -y Reading package lists

我正在尝试在树莓Pi3上安装MySQL。目前我已经安装了
Apache
PHP
。我现在需要安装
MySQL
,但是当我安装
sudo apt get install MySQL server php MySQL-y
时,我收到一个错误告诉我没有这样的包:
E:包“mysql服务器”没有安装候选程序
完整输出:

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安装mariadb服务器php-mysql-y