将Wordpress安装到Raspberry Pi中

问题描述 投票:0回答:1

我正在尝试中Wordpress安装在Raspberry Pi 3上。因此,我安装了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```

wordpress raspberry-pi raspberry-pi3 mysql-connector apt
1个回答
0
投票

我想使用MariaDB解决了我的问题。

sudo apt install mariadb-server php-mysql -y

© www.soinside.com 2019 - 2024. All rights reserved.