Linux上安装MySQL 8.0.29
系统环境 阿里云ECS服务器Ubuntu18.04
MySQL数据库配置
- 查看系统位数
file /bin/ls
- 下载mysql 8.0.29
wget https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-server_8.0.29-1ubuntu18.04_amd64.deb-bundle.tar
- 解压到指定目录
tar -xvf mysql-server_8.0.29-1ubuntu18.04_amd64.deb-bundle.tar -C ../yourpath
- 列出所有可更新的软件清单命令
sudo apt update
- 依次执行一下命令即可
sudo dpkg -i mysql-common_8.0.29-1ubuntu18.04_amd64.deb
sudo dpkg -i mysql-community-client-plugins_8.0.29-1ubuntu18.04_amd64.deb
sudo dpkg -i libmysqlclient21_8.0.29-1ubuntu18.04_amd64.deb
sudo dpkg -i libmysqlclient-dev_8.0.29-1ubuntu18.04_amd64.deb