方法一: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