You must reset your password using ALTER USER statement before executing thi
新电脑安装mysql5.7通过client连接mysql想要修改密码:
一开始执行的是
update mysql.user set authentication_string=password('root') where user='root' and Host ='localhost';
然后报错:
原来一开始是没有密码的,在初始化的时候有个密码,只是相当于临时密码:
直接执行设置密码即可:
alter user user() identified by "root";
然后通过工具就可以直接连接了…
世界上所有的不公平都是由于当事人能力不足造成的.