簡體   English   中英

將 MySql 安裝到樹莓派

[英]Installing MySql to Raspberry Pi

我正在嘗試Raspberry Pi 3上安裝MySQL 目前我已經安裝了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```

我想使用MariaDB解決我的問題。

sudo apt install mariadb-server php-mysql -y

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM