Ubuntu 22.04使用DPKG安装MySQL 8.2

下载:

wget https://dev.mysql.com/get/Downloads/MySQL-8.2/mysql-server_8.2.0-1ubuntu22.04_amd64.deb-bundle.tar

解压缩包:

tar xf mysql-server_8.2.0-1ubuntu22.04_amd64.deb-bundle.tar

安装:

dpkg -i mysql-common_8.2.0-1ubuntu22.04_amd64.deb
dpkg -i mysql-community-client-plugins_8.2.0-1ubuntu22.04_amd64.deb
dpkg -i libmysqlclient22_8.2.0-1ubuntu22.04_amd64.deb
dpkg -i libmysqlclient-dev_8.2.0-1ubuntu22.04_amd64.deb
dpkg -i mysql-community-client-core_8.2.0-1ubuntu22.04_amd64.deb
dpkg -i mysql-community-client_8.2.0-1ubuntu22.04_amd64.deb
dpkg -i mysql-client_8.2.0-1ubuntu22.04_amd64.deb
dpkg -i mysql-community-server-core_8.2.0-1ubuntu22.04_amd64.deb
dpkg -i mysql-community-server_8.2.0-1ubuntu22.04_amd64.deb

安装过程中可能出现的报错:

dpkg: dependency problems prevent configuration of mysql-community-server-core:
 mysql-community-server-core depends on libmecab2 (>= 0.996); however:
  Package libmecab2 is not installed.
 mysql-community-server-core depends on libnuma1 (>= 2.0.11); however:
  Package libnuma1 is not installed.

dpkg: error processing package mysql-community-server-core (--install):
 dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.35-0ubuntu3.4) ...
Errors were encountered while processing:
 mysql-community-server-core

dpkg: dependency problems prevent configuration of mysql-community-server:
 mysql-community-server depends on psmisc; however:
  Package psmisc is not installed.

dpkg: error processing package mysql-community-server (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-community-server

解决方法:

apt --fix-broken install
apt install psmisc

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注