From d543e2032ae7394891c358f8182a2b386d3c3fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E6=B0=B8=E8=BE=BE?= Date: Fri, 22 Dec 2023 00:58:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/MySQL.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/_posts/MySQL.md b/source/_posts/MySQL.md index 0139953..d572ef1 100644 --- a/source/_posts/MySQL.md +++ b/source/_posts/MySQL.md @@ -278,6 +278,14 @@ GRANT Update ON database.* TO 'username'@'%'; GRANT PROCESS ON *.* TO 'username'@'%'; ``` +## 创建管理员用户 + +```mysql +create user 'zhaoyan'@'%' identified by 'zhaoyan@123'; +grant all on *.* to 'zhaoyan'@'%' with grant option; +flush privileges; +``` + # 存储过程和函数