From 5707400b817b35c631f1a0c69b65a483eb4dcf2c Mon Sep 17 00:00:00 2001 From: Alomerry Wu Date: Wed, 14 Feb 2024 14:05:52 +0800 Subject: [PATCH] chore: update --- docs/docs/mysql/index.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 docs/docs/mysql/index.md diff --git a/docs/docs/mysql/index.md b/docs/docs/mysql/index.md new file mode 100644 index 00000000..744c931d --- /dev/null +++ b/docs/docs/mysql/index.md @@ -0,0 +1,15 @@ +# MySQL8 手册 + +## 修改密码 + +mysql> show databases; + +mysql> use mysql; + +mysql> ALTER USER '用户名'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码'; + +mysql> flush privileges; --刷新MySQL的系统权限相关表 + +mysql> exit; + +[MySQL8.0、创建新用户与角色授权](https://cloud.tencent.com/developer/article/2230081) \ No newline at end of file