|
@@ -42,7 +42,7 @@ mysql -u root -p
|
|
set global validate_password_length=4;
|
|
set global validate_password_length=4;
|
|
set global validate_password_policy=0;
|
|
set global validate_password_policy=0;
|
|
# 修改默认密码,注意替换后面的密码
|
|
# 修改默认密码,注意替换后面的密码
|
|
-ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'r';
|
|
|
|
|
|
+ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '1';
|
|
flush privileges;
|
|
flush privileges;
|
|
# 5.开放远程连接
|
|
# 5.开放远程连接
|
|
use mysql;
|
|
use mysql;
|