一,安装
dnf install https://repo.mysql.com//mysql80-community-release-el9-1.noarch.rpm
dnf install mysql-server
1.sudo apt-get install mysql-server
2.sudo apt-get install mysql-client
3.sudo apt-get install libmysqlclient-dev
4.安装前最好 sudo apt-get update和sudo apt-get upgrade一下
5.第一条命令可能会出现要你输入默认密码的情况,我