从官网下载源再用yum安装:
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm # rpm -ivh mysql-community-release-el7-5.noarch.rpm # yum install mysql-community-server
重新启动
# service mysqld restart
为数据库root用户设置密码: usr/bin/mysqladmin -u root password 123456
就这么简单,enjoy your time!
时间: 2024-10-06 04:48:07