我正在尝试中将Wordpress
安装在Raspberry Pi 3
上。因此,我安装了Apache
和PHP
。现在,我需要安装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