centos8安装mysql8.0
安装步骤 1.下载mysql源安装包 在MySQL官网中下载YUM源rpm安装包:http://dev.mysql.com/downloads/repo/yum/ wget https://repo.mysql.com//mysql80-community-release-el8-1.noarch.rpm 2.安装mysql源 下载完成后使用下面命令安装源: yum localinstall mysql80-community-release-el7-1.noarch.rpm 3.检查是否安装成功 yum repolist enabled | grep “mysql. -community. ” 4.安装mysql yum install -y mysql-server 安装成功,启动MySQL systemctl start mysqld 开机自动运行 systemctl enable mysqld 具体步骤 可查看此篇博文:https://blog.csdn.net/qq_38591756/article/details/82958333?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task 注:mysql默认3306端口,如果远程连接不上