Blogger Information
Blog 39
fans 1
comment 0
visits 62380
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
linux通过rpm包安装mysql
Dai的博客
Original
7534 people have browsed it

1、下载官网rmp包

wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm

2、yum安装

yum -y install mysql57-community-release-el7-10.noarch.rpm

3、安装mysql服务器

yum -y install mysql-community-server

4、先启动mysql

systemctl start  mysqld.service

5、查看配置文件,查到log-error文件,   log-error=/var/log/mysqld.log

cat /etc/my.cnf

6、查看log-error文件内容

vi /var/log/mysqld.log

7、查看mysql临时密码

微信图片_20191017153309.png

8、登陆mysql

mysql -uroot -p

9、修改密码:

ALTER USER USER() IDENTIFIED BY 'new password';

 10、如果出现以下问题:

Your password does not satisfy the current policy requirements

表示你设置的密码不符合mysql密码设置规则 ,则可以进行规则 修改

set global validate_password_policy=0;

设置成功后,再执行修改密码命令(第9步),修改成功后,即完成;

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post