时间:2021-07-01 10:21:17 帮助过:3人阅读
对于数据库我们经常使用,使用源码包安装太费时间了,在网络较好的情况下。建议使用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;
https://blog.csdn.net/kabolee/article/details/82528913
CentOS 7 系统YUM 安装MySQL 5.7
标签:rar alt image dev with inf article 远程 密码