mysql-5.7.17怎么修改数据库密码

方法一:update mysql.user set authentication_string=password('你想输入的密码') where user='root' and Host ='localhost';然后再输入 :flush privileges *不要忘记加分号。方法二:使用 set password = password('admin'); 来设置密码。并刷新权限 flush privileges;...
mysql-5.7.17怎么修改数据库密码
方法一:update mysql.user set authentication_string=password('你想输入的密码') where user='root' and Host ='localhost';
然后再输入 :
flush privileges *不要忘记加分号。

方法二:使用 set password = password('admin'); 来设置密码。
并刷新权限 flush privileges;2017-05-14
方法一:update mysql.user set authentication_string=password('你想输入的密码') where user='root' and Host ='localhost';
然后再输入 :
flush privileges *不要忘记加分号。
方法二:使用 set password = password('admin'); 来设置密码。
并刷新权限 flush privileges;2017-05-15
mengvlog 阅读 65 次 更新于 2025-12-19 23:44:05 我来答关注问题0
檬味博客在线解答立即免费咨询

mySQL相关话题

Copyright © 2023 WWW.MENGVLOG.COM - 檬味博客
返回顶部