1. 程式人生 > >xampp中修改mysql預設空密碼

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;

 

  記錄完畢。