[英]Installing MySql to Raspberry Pi
我正在嘗試在Raspberry Pi 3
上安裝MySQL
。 目前我已經安裝了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
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.