在 ubuntu 19 里安装 mysql5.7
环境:ubuntu 19
步骤:
- wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-server_5.7.28-1ubuntu19.04_amd64.deb-bundle.tar # 下载.deb的安装包
- tar -xvf mysql-server_5.7.28-1ubuntu19.04_amd64.deb-bundle.tar # 解压下载好的安装包
- rm -rf mysql-testsuite_5.7.28-1ubuntu19.04_amd64.deb mysql-community-test_5.7.28-1ubuntu19.04_amd64.deb # 删除其中两个用于测试目的的程序
- dpkg -i mysql-*.deb # 安装其余的.deb包
- apt install libmecab2 # 如安装失败,提示缺 libmecab2 包的话,请补装 libmecab2 后再次安装mysql5.7的.deb包
参考:https://marabesi.com/mysql/2019/12/23/mysql-5.7-on-ubuntu-19.html