https://downloads.mysql.com/archives/community/
选择debian适合的版本
cd 到预定安装目录
解压
tar -xvf mysql-server_5.7.39-1debian10_amd64.deb-bundle.tar

依赖安装
apt install psmisc libaio1 libnuma1 libatomic1 libmecab2

安装MySQL程序（需要按照顺序依次安装）

    dpkg -i mysql-common_5.7.39-1debian10_amd64.deb
    dpkg -i mysql-community-client_5.7.39-1debian10_amd64.deb
    dpkg -i mysql-client_5.7.39-1debian10_amd64.deb
    dpkg -i mysql-community-server_5.7.39-1debian10_amd64.deb
# 期间会提示输入密码, 并确认密码
    dpkg -i mysql-server_5.7.39-1debian10_amd64.deb

# 配置客户端默认字符集，新增参数default-character-set=utf8
    vim /etc/mysql/conf.d/mysql.cnf
     
    default-character-set=utf8
     
