原因
默认 root 账户的密码是 root,比较简单为了提高安全性,防止再次被黑客破解,需要修改密码。
解决方法
1.进入Mysql容器
2.修改数据库密码 命令
命令:update user set authentication_string=password('密码') where user='原密码';
原因
默认 root 账户的密码是 root,比较简单为了提高安全性,防止再次被黑客破解,需要修改密码。
解决方法
1.进入Mysql容器
2.修改数据库密码 命令
命令:update user set authentication_string=password('密码') where user='原密码';