1.配置root密码
use mysql;
UPDATE user SET plugin=‘mysql_native_password’ WHERE User=‘root’;
SHOW VARIABLES LIKE ‘validate_password%’;
set global validate_password.policy=LOW;
set global validate_password.length=6;
SET PASSWORD = ‘123456’;
FLUSH PRIVILEGES;