标签:ide lang src not fir 没有 sys lis lease
[root@hadoop002 ~]# wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm
[root@hadoop002 ~]# rpm -ivh mysql57-community-release-el7-9.noarch.rpm
[root@hadoop002 ~]# yum repolist all| grep mysql
mysql-connectors-community/x86_64 MySQL Connectors Community 启用: 153
mysql-connectors-community-source MySQL Connectors Community - Sour 禁用
mysql-tools-community/x86_64 MySQL Tools Community 启用: 110
mysql-tools-community-source MySQL Tools Community - Source 禁用
mysql-tools-preview/x86_64 MySQL Tools Preview 禁用
mysql-tools-preview-source MySQL Tools Preview - Source 禁用
mysql55-community/x86_64 MySQL 5.5 Community Server 禁用
mysql55-community-source MySQL 5.5 Community Server - Sour 禁用
mysql56-community/x86_64 MySQL 5.6 Community Server 禁用
mysql56-community-source MySQL 5.6 Community Server - Sour 禁用
mysql57-community/x86_64 MySQL 5.7 Community Server 启用: 424
mysql57-community-source MySQL 5.7 Community Server - Sour 禁用
mysql80-community/x86_64 MySQL 8.0 Community Server 禁用
mysql80-community-source MySQL 8.0 Community Server - Sour 禁用
[root@hadoop002 ~]# vim /etc/yum.repos.d/mysql-community.repo
# 如需修改启动的版本,则修改enabled 1为启用 0位禁用
[root@hadoop002 ~]# yum install -y mysql-community-server
[root@hadoop002 ~]# systemctl start mysqld
[root@hadoop002 ~]# systemctl enable mysqld
[root@hadoop002 ~]# grep ‘password‘ /var/log/mysqld.log
2020-05-27T15:18:23.821599Z 1 [Note] A temporary password is generated for root@localhost: 54O>pi!0lYc*
[root@hadoop002 ~]# mysql -u root -p
mysql> ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘KoiioK12#‘;
mysql> GRANT ALL PRIVILEGES ON *.* TO ‘root‘@‘%‘ IDENTIFIED BY ‘KoiioK12#‘ WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
如果出现连不上,看看防火墙有没有关闭
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
标签:ide lang src not fir 没有 sys lis lease
原文地址:https://www.cnblogs.com/koiiok/p/12977544.html