当前位置:   article > 正文

Mysql Yum安装_yum 安装mysql

yum 安装mysql

步骤一:首先下载mysql的yum源配置

 

 1 |  wget http://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm

步骤二:安装mysql的yum源

1 |  yum -y install mysql57-community-release-el7-11.noarch.rpm

步骤三:yum方式安装mysql

1 | yum -y install mysql-server --nogpgcheck

步骤四:使用mysql

1 | systemctl start mysqld.service
2 | systemctl status mysql.service
 

cat /var/log/mysqld.log| grep password

步骤五:   进入命令行mysql

步骤六: 修改数据库密码

ALTER USER USER() IDENTIFIED BY '123456@Aa';
 

alter user 'root'@'%' identified by '123456@Aa' password expire never;

grant all privileges on *.* to 'root'@'%' identified by '123456A@a' with grant option;

set global validate_password_policy=0;

set global validate_password_mixed_case_count=1;

set global validate_password_number_count=1;

set global validate_password_length=4;

flush privileges;
 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/571975
推荐阅读
相关标签
  

闽ICP备14008679号