修改mysql数据库 密码

Posted wmxl

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了修改mysql数据库 密码相关的知识,希望对你有一定的参考价值。

 将密码改成123456 update mysql.user set authentication_string=password(‘123456‘) where user=‘root‘ and Host = ‘localhost‘;

 将密码改成空             update mysql.user set authentication_string=password(‘‘where user=‘root‘ and Host = ‘localhost‘;

这个修改的就是刚进mysql console 需要输入的密码, 也是navcat里创建连接所要用到的密码

 

记得重启服务器

以上是关于修改mysql数据库 密码的主要内容,如果未能解决你的问题,请参考以下文章