[英]Installing MySql to Raspberry Pi
I am trying to install MySQL
on a Raspberry Pi 3
.我正在尝试在
Raspberry Pi 3
上安装MySQL
。 Currently I have Apache
and PHP
installed.目前我已经安装了
Apache
和PHP
。 I now need to install MySQL
but when I do sudo apt-get install mysql-server php-mysql -y
, I receive an error telling me that there is no such package:我现在需要安装
MySQL
但是当我执行sudo apt-get install mysql-server php-mysql -y
,我收到一条错误消息,告诉我没有这样的包:
E: Package 'mysql-server' has no installation candidate
Complete output: 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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.