首页 > 数据库技术 > 详细

Mysql密码操作

时间:2021-04-22 23:42:21      阅读:29      评论:0      收藏:0      [点我收藏+]

修改密码

1.进入数据库c:\User\...>mysql -uroot -p

2.输入密码:

3.

method1:
mysql>alter user root@localhost identified by new password

method2:
mysql> use mysql
mysql> update user set  authentication_string=password(‘new password) where user=root and host=localhost;
mysql> flush privaileges;

method3:
set password for root@localhost=password(new password);

method4:不用进数据库

c:\users\...>mysqladmihn -uroot -p旧密码 password 新密码

 

Mysql密码操作

原文:https://www.cnblogs.com/zjw1324399/p/14691451.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!