xampp 修改 mysql 密碼
阿新 • • 發佈:2019-01-07
mysql使用者的相關資訊是儲存在mysql資料庫的user表
執行語句,修改密碼
UPDATE user SET password=PASSWORD('root') WHERE user='root';
找到phpMyadmin的配置檔案,即phpMyAdmin目錄下的config.inc.php
如下程式碼
/* 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'] = 'root';
$cfg['Servers'][$i]['extension' ] = 'mysql';
$cfg['Servers'][$i]['AllowNoPassword'] = true;