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"; # 强制写入