close
此篇所使用XAMPP版本為XAMPP for Windows 7.3.2 (PHP 7.3.2),下載網址如下,
XAMPP Apache + MariaDB + PHP + Perl
下載並安裝完成後,打開XAMPP,尋找phpMyAdmin(config.inc.php)
要修改部份在第19行到第24行,
修改結果如下所示,
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
$cfg['Lang'] = '';
啟動Apache與MySQL,
輸入
使用者名稱: root
密碼: 123456
發現無法登入phpMyAdmin
在XAMPP Control Panel開啟Shell
在視窗下輸入指令
mysqladmin.exe -u root password 123456
按下Enter後,重返phpMyAdmin登入頁面,輸入完帳號密碼就能順利進入如下畫面
文章標籤
全站熱搜
留言列表