1、在wamp搜索my.ini文件,然后找到这个文件,将skip-grant-tables文件注释去掉
,重启mysql服务
2、在MySQL 控制台输入SQL语句:update user set authentication_string=PASSWORD('root') where user='root';
3、最后输入flush privileges;保存密码
4、将【my.ini】中添加的【skip-grant-tables
】重新注释掉。
5、重启服务
1、在wamp搜索my.ini文件,然后找到这个文件,将skip-grant-tables文件注释去掉
,重启mysql服务
2、在MySQL 控制台输入SQL语句:update user set authentication_string=PASSWORD('root') where user='root';
3、最后输入flush privileges;保存密码
4、将【my.ini】中添加的【skip-grant-tables
】重新注释掉。
5、重启服务