From ce656255c48bc2a8b9758f86875c1c96b6d7e188 Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Wed, 31 Jul 2019 18:15:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ithink.chan --- Software/Application/MariaDB/MariaDB_安装配置与使用.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Software/Application/MariaDB/MariaDB_安装配置与使用.md b/Software/Application/MariaDB/MariaDB_安装配置与使用.md index b03529c..25a3130 100644 --- a/Software/Application/MariaDB/MariaDB_安装配置与使用.md +++ b/Software/Application/MariaDB/MariaDB_安装配置与使用.md @@ -32,6 +32,7 @@ systemctl start mariadb ```sh mysql_secure_installation + Enter current password for root (enter for none):[password] Switch to unix_socket authentication [Y/n] n Change the root password? [Y/n] Y Remove anonymous users? [Y/n] Y @@ -53,7 +54,7 @@ drop database ; # 选择操作的数据库 use mysql; # 更改密码 -update user set authentication_string=PASSWORD('passwd') where User='root'; +update user set authentication_string=PASSWORD('passwd') where user='root'; # 如果没这一行可能也会报一个错误,因此需要运行这一行 update user set plugin="mysql_native_password"; # 强制写入