# 1. 如果弹出这个句子,可以不用更改 mysql 的 root 密码,想改也可以改
Change the password for root ? ((Press y|Y for Yes, any other key for No) : n
# 2. 如果出现以下段落,就需要重新设置密码
# 2.1. 询问是否使用密码验证
Securing the MySQL server deployment.
Connecting to MySQL using a blank password.
VALIDATE PASSWORD COMPONENT can be used to test passwords
and improve security. It checks the strength of password
and allows the users to set only those passwords which are
secure enough. Would you like to setup VALIDATE PASSWORD component?
Press y|Y for Yes, any other key for No:
# 2.2. 密码强度三个级别
There are three levels of password validation policy:
LOW Length >= 8
MEDIUM Length >= 8, numeric, mixed case, and special characters
STRONG Length >= 8, numeric, mixed case, special characters and dictionary file
Please enter 0 = LOW, 1 = MEDIUM and 2 = STRONG:
# 2.3. 后面输入密码就可以
# 3. 此处不重设密码,之后询问的所有内容,一路 y 即可
# 4. 登陆 MySQL
mysql -uroot -p