查询系统版本
执行cat /etc/os-release 可以看到是debian11
bash
root@service-headquarters-hg-self-data-report-844ccf78b-6ls7t:/mysql#cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
下载安装包
- 下载mysql-client
打开 https://downloads.mysql.com/archives/community/
下载 Debian Linux 11 (x86, 64-bit), DEB Bundle
如图
- 下载依赖包libmecab2
https://www.ubuntuupdates.org/package/core/xenial/universe/base/libmecab2选择对应的版本(32位或64位)下载
上传服务器
libmecab2_0.996-1.2ubuntu1_amd64.deb
libmysqlclient-dev_8.1.0-1debian11_amd64.deb
libmysqlclient22_8.1.0-1debian11_amd64.deb
mysql-client_8.1.0-1debian11_amd64.deb
mysql-common_8.1.0-1debian11_amd64.deb
mysql-community-client-core_8.1.0-1debian11_amd64.deb
mysql-community-client-plugins_8.1.0-1debian11_amd64.deb
mysql-community-client_8.1.0-1debian11_amd64.deb
即libmecab2_0.996-1.2ubuntu1_amd64.deb及mysql压缩包中带client的deb文件
进行安装
在当前文件夹下执行 sudo dpkg -i *.deb