当前位置:Gxlcms > 数据库问题 > MySQL更改密码

MySQL更改密码

时间:2021-07-01 10:21:17 帮助过:4人阅读

键入  mysql -u root -p  登录成功,如若已经忘记密码,查看这篇教程https://www.cnblogs.com/shyw/p/12056493.html

键入  use mysql

键入  update mysql.user set authentication_string=password(‘123456‘) where user=‘root‘;       设置数据库密码  适用于mysql 5.7版本

重启服务(要切换到mysql的bin目录!!!!!!!!)   

    net stop mysql;

    net start mysql;

MySQL更改密码

标签:root   word   http   mys   忘记   star   ati   tar   更改密码   

人气教程排行