ALTERUSER'root'@'localhost'IDENTIFIEDBY'new password';# 注意: 这里密码不能过于简单,若需要更改简单密码,需要修改密码规则# SHOW VARIABLES LIKE 'validate_password%';# set global validate_password_policy=0;# set global validate_password_length=1;# ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';