From 86bfef94c6b223bf4ba62f6f79fbbf75e610eb9b Mon Sep 17 00:00:00 2001 From: "isaac.fan" Date: Mon, 3 Aug 2020 13:56:37 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=85=B3=E4=BA=8EMysql?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E9=BB=98=E8=AE=A4=E5=AF=86=E7=A0=81?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E7=9A=84=E6=96=87=E6=A1=A3=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/guide/install/local/README.md | 31 ++++++++------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/docs/zh/guide/install/local/README.md b/docs/zh/guide/install/local/README.md index 8b50f0a..6f7b457 100644 --- a/docs/zh/guide/install/local/README.md +++ b/docs/zh/guide/install/local/README.md @@ -164,39 +164,22 @@ rpm -ivh mysql-community-release-el6-5.noarch.rpm cat >/etc/yum.repos.d/mysql-community.repo <&1 From e34c3b643de9f99ba62d21935846a1a32d92d62b Mon Sep 17 00:00:00 2001 From: "isaac.fan" Date: Mon, 3 Aug 2020 14:02:46 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0mysql=E5=AE=98=E6=96=B9?= =?UTF-8?q?=E5=8F=82=E8=80=83=E6=96=87=E6=A1=A3=E9=93=BE=E6=8E=A5=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/zh/guide/install/local/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/zh/guide/install/local/README.md b/docs/zh/guide/install/local/README.md index 6f7b457..00bb4c6 100644 --- a/docs/zh/guide/install/local/README.md +++ b/docs/zh/guide/install/local/README.md @@ -192,7 +192,7 @@ yum install mysql-community-server -y systemctl enable mysqld.service # 设置开机启动 systemctl start mysqld.service # 启动mysqld systemctl status mysqld.service # 查看运行状态 -grep 'temporary password' /var/log/mysqld.log # 查看mysql-server的超级用户临时密码. 5.7的mysql-server ,默认创建超级用户帐户"root"@"localhost" 并将该用户的密码存储在错误日志文件中 +grep 'temporary password' /var/log/mysqld.log # 查看mysql-server的超级用户临时密码. 5.7的mysql-server ,默认创建超级用户帐户"root"@"localhost" 并将该用户的密码存储在错误日志文件中. 官方参考文档:https://dev.mysql.com/doc/refman/5.7/en/linux-installation-yum-repo.html mysql -uroot -p # 使用超级用户的临时密码登陆 ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass4!'; # 修改超级用户的密码 echo "info: start mysql grant user."