use mysql; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '复杂一点的密码'; flush privileges; ''' 如出现本地密码策略问题,参照网上修改本地密码策略。 https://blog.csdn.net/weixin_49891946/article/details/120791640 '''