3、设计好自己密码后点击执行,此时密码已经修改成功,但是问题来了,此页面已经不再是phpMyAdmin页面了,而是拒绝访问,原因是我们修改了mysql的访问密码;
4、打开Xampp\phpMyAdmin\config_inc.php文件,将下面图片中的config修改为新密码,此时就完成了mysql密码修改的整个步骤,然后重新启动Xampp,点击刷新phpMyAdmin页面就可以去操作了。
Authentication type and info */$cfg['Servers'][$i]['auth_type']
= 'config';$cfg['Servers'][$i]['user']
= 'root';$cfg['Servers'][$i]['password']
= '';$cfg['Servers'][$i]['extension']
= 'mysql';$cfg['Servers'][$i]['AllowNoPassword']
= true;
修改为
Authentication type and info */$cfg['Servers'][$i]['auth_type']
= 'config';$cfg['Servers'][$i]['user']
= 'root';$cfg['Servers'][$i]['password']
= '123456';$cfg['Servers'][$i]['extension']
= 'mysql';$cfg['Servers'][$i]['AllowNoPassword']
= true;
假设新密码为123456