标签:rar alt image dev with inf article 远程 密码
需求对于数据库我们经常使用,使用源码包安装太费时间了,在网络较好的情况下。建议使用yum在线安装MySQL,非常方便!
1.CentOS 7
2.关闭防火墙,增强性
3.可连接外网
yum -y install wget
wget http://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
yum localinstall mysql57-community-release-el7-8.noarch.rpm
yum repolist enabled | grep "mysql.-community."
yum install mysql-community-server
vim /etc/yum.repos.d/mysql-community.repo
systemctl start mysqld
systemctl status mysqld
systemctl enable mysqld
systemctl daemon-reload #重载服务
grep ‘temporary password‘ /var/log/mysqld.log
mysql -uroot -p
set password for ‘root‘@‘localhost‘=password(‘mypass@123#!‘);
grant all privileges on . to ‘root‘@‘%‘ identified by ‘abc123‘ with grant option; #设置权限
flush privileges;
标签:rar alt image dev with inf article 远程 密码
原文地址:https://blog.51cto.com/13760351/2497200