close

01.JPG

此篇所使用XAMPP版本為XAMPP for Windows 7.3.2 (PHP 7.3.2),下載網址如下,

XAMPP Apache + MariaDB + PHP + Perl

下載並安裝完成後,打開XAMPP,尋找phpMyAdmin(config.inc.php)

1.png

要修改部份在第19行到第24行,

2.JPG

修改結果如下所示,

/* 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'] = '';

3.JPG

啟動Apache與MySQL,

4.JPG

輸入

使用者名稱: root

密碼: 123456

發現無法登入phpMyAdmin

5.JPG

在XAMPP Control Panel開啟Shell

6.JPG

在視窗下輸入指令

mysqladmin.exe -u root password 123456

7.JPG

按下Enter後,重返phpMyAdmin登入頁面,輸入完帳號密碼就能順利進入如下畫面

8.JPG

arrow
arrow
    文章標籤
    XAMPP MySQL PHP
    全站熱搜

    鄭智遠 發表在 痞客邦 留言(0) 人氣()