赞
踩
cat /etc/redhat-release
rpm -qa|grep mysql
yum -y remove mariadb-libs-5.5.60-1.el7_5.x86_64
cd /home
wget https://repo.mysql.com//mysql80-community-release-el7-5.noarch.rpm
yum localinstall mysql80-community-release-el7-5.noarch.rpm
yum clean all && yum makecache
yum repolist enabled | grep "mysql.*-community.*"
yum repolist all | grep mysql
systemctl start mysqld
systemctl enable mysqld
systemctl status mysqld
mysql --version
grep 'temporary password' /var/log/mysqld.log
2022-02-14T07:14:58.459399Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: rre=l4WykyCl
mysql -u root -p
输入密码
ALTER USER 'root'@'localhost' IDENTIFIED BY 'root-password';
mysql> show databases;
mysql> use mysql;
mysql> select user,host from user;
mysql> update user set host="%" where user="root";
mysql> flush privileges;
mysql> quit;
登录阿里云服务器后台管理页面,找到防火墙设置,不通服务器的进入不一样,找一下,博主是轻应用服务器
还可以创建一个快照,防止意外情况
作者:CSDN-麻辣香锅777
出处: https://blog.csdn.net/SUBSEA123/
CSDN主页: https://blog.csdn.net/SUBSEA123/
博客园主页: https://www.cnblogs.com/subsea/
简介:都是分享的自己学习的感悟,欢迎讨论,CSDN和博客园都是本人账号原创文章,平时会不定期更新博文,喜欢的点个赞吧!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。