centos7和centos8安装mysql5.6 5.7 8.0原来这么简单–云惠网

avatar
avatar
云惠网小编
263
文章
0
评论
2020年6月6日08:53:21 评论 1071字阅读3分34秒
摘要

安装mysql5.6

安装mysql5.6

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

rpm -ivh mysql-community-release-el7-5.noarch.rpm

yum install mysql-server -y

service mysqld start

service mysqld status

systemctl enable mysqld.service

grep "password" /var/log/mysqld.log找初始密码,如果报找不到文件那就试试grep "password" /var/log/mysql/mysqld.log

mysqladmin -uroot -p password NewPassword回车输入初始密码来重置密码

安装mysql5.7

wget https://repo.mysql.com/mysql57-community-release-el7-11.noarch.rpm

rpm -ivh mysql57-community-release-el7-11.noarch.rpm

yum install mysql-server -y

service mysqld start

service mysqld status

systemctl enable mysqld.service

grep "password" /var/log/mysqld.log找初始密码,如果报找不到文件那就试试grep "password" /var/log/mysql/mysqld.log

mysqladmin -uroot -p password NewPassword回车输入初始密码来重置密码

安装mysql8.0

wget https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm

rpm -ivh mysql80-community-release-el7-3.noarch.rpm

yum install mysql-server -y

service mysqld start

service mysqld status

systemctl enable mysqld.service

grep "password" /var/log/mysql/mysqld.log找初始密码,如果报找不到文件那就试试grep "password" /var/log/mysqld.log

mysqladmin -uroot -p password NewPassword回车输入初始密码来重置密码

腾讯云618
avatar
腾讯云618
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: