我是树莓派4B,刷的是Ubuntu server 20.04 LTS
我尝试使用以下命令搜索 mysql5.7
sudo apt-cache policy mysql-server
它给了我:
mysql-server:
Installed: (none)
Candidate: 8.0.23-0ubuntu0.20.04.1
Version table:
8.0.23-0ubuntu0.20.04.1 500
500 http://ports.ubuntu.com/ubuntu-ports focal-updates/main arm64 Packages
500 http://ports.ubuntu.com/ubuntu-ports focal-security/main arm64 Packages
8.0.19-0ubuntu5 500
500 http://ports.ubuntu.com/ubuntu-ports focal/main arm64 Packages
我尝试下载适用于 Debian(以及 Ubuntu)的最新版本的 MySql 5.6
wget https://dev.mysql.com/get/Downloads/MySQL-5.6/mysql-server_5.6.48-1debian9_amd64.deb-bundle.tar
dpkg -i mysql-server_5.6.48-1debian9_amd64.deb-bundle.tar
mysql apt update
sudo add-apt-repository 'deb http://archive.ubuntu.com/ubuntu trusty universe'
sudo apt-get update
apt-get install mysql-common-5.6 mysql-client-5.6 mysql-server-5.6
給我:
dpkg: error processing archive libmysqlclient-dev_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive libmysqlclient18_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive libmysqld-dev_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive mysql-client_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive mysql-common_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive mysql-community-bench_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive mysql-community-client_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive mysql-community-server_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive mysql-community-source_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive mysql-community-test_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive mysql-server_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
dpkg: error processing archive mysql-testsuite_5.6.48-1debian9_amd64.deb (--install):
package architecture (amd64) does not match system (arm64)
Errors were encountered while processing:
libmysqlclient-dev_5.6.48-1debian9_amd64.deb
libmysqlclient18_5.6.48-1debian9_amd64.deb
libmysqld-dev_5.6.48-1debian9_amd64.deb
mysql-client_5.6.48-1debian9_amd64.deb
mysql-common_5.6.48-1debian9_amd64.deb
mysql-community-bench_5.6.48-1debian9_amd64.deb
mysql-community-client_5.6.48-1debian9_amd64.deb
mysql-community-server_5.6.48-1debian9_amd64.deb
mysql-community-source_5.6.48-1debian9_amd64.deb
mysql-community-test_5.6.48-1debian9_amd64.deb
mysql-server_5.6.48-1debian9_amd64.deb
mysql-testsuite_5.6.48-1debian9_amd64.deb
答案1
MySQL 5.6 可通过 为 Raspberry Pi 提供stretch
,但它们相当大。请查看raspbian.org并选择一个可能适合您的版本。
另外,还有 MariaDB,它通常被视为 MySQL 5.x 的替代品。