xampp中修改mysql默认空密码

  打卡记录:

  1. mysql用户的相关信息是保存在mysql数据库的user表中的,并且该表的密码字段(Password)是通过PASSWORD方法加密存储的,所以不能直接修改成123456。

  

  2. 修改phpmyadmin的登录密码。

  找到phpMyadmin的配置文件,即phpMyAdmin目录下的config.inc.php,找到如下代码并修改:

  /* Authentication type and info */
  $cfg['Servers'][$i]['auth_type'] = 'config';
  $cfg['Servers'][$i]['user'] = 'root';
  $cfg['Servers'][$i]['password'] = '123456';
  $cfg['Servers'][$i]['extension'] = 'mysqli';
  $cfg['Servers'][$i]['AllowNoPassword'] = true;

  记录完毕。

猜你喜欢

转载自www.cnblogs.com/iverson-3/p/10247926.html
今日推荐