Ubuntu 20.04安装mysql 5.7

少年乘勇气,百战过乌孙。这篇文章主要讲述Ubuntu 20.04安装mysql 5.7相关的知识,希望能为你提供帮助。
【Ubuntu 20.04安装mysql 5.7】Ubuntu 20.04安装mysql 5.7
安装:
wget https://dev.mysql.com/get/mysql-apt-config_0.8.12-1_all.debdpkg -i mysql-apt-config_0.8.12-1_all.deb选择MySQL Server & Cluster
mysql-5.7
OK
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 467B942D3A79BD29apt-get updateapt-get install -y mysql-community-server=5.7.37-1ubuntu18.04 mysql-client=5.7.37-1ubuntu18.04设置mysql root密 如果安装报错,可以卸载离线安装下
dpkg -P mysql-community-serverdpkg -i /var/cache/apt/archives/mysql-community-server_5.7.37-1ubuntu18.04_amd64.deb验证:
netstat -ntpl | grep 3306

    推荐阅读