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;

 

  記錄完畢。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM