mysql修改密码
登录MySQL
use mysql;
5.7之前
update user set password=password("root@123") where user="root";
flush privileges;
5.7之后
update user set authentication_string=password("123456") where user="root";
flush privileges;
然后重新登录
登录MySQL
use mysql;
5.7之前
update user set password=password("root@123") where user="root";
flush privileges;
5.7之后
update user set authentication_string=password("123456") where user="root";
flush privileges;
然后重新登录
上一篇:docker容器文件拷贝到宿主机
下一篇:The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indire
gitlab管理员root的密码忘记了,通过gitlab命令行直接修改root账号的密码。
mysql密码重置和忘记root密码重设密码
在使用数据库时,我们也许会遇到 MySQL 需要修改密码的情况,比如密码太简单需要修改等。本节主要介绍了 3 种修改 MySQL 数据库密码的方法。
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M