设置MySql服务器用户名密码路径:XAMPP/xamppfiles/phpmyadmin/config.inc.php,因为版本不同,也可能在目录:XAMPP/phpMyAdmin/config.inc.php
$cfg['Servers'][$i]['auth_type'] = 'http';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '123456';
设置远程访问服务器权限:XAMPP/etc/extra/httpd-xampp.conf,因为版本不同,也可能在目录:XAMPP/apache/conf/extra/httpd-xampp.conf
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
将 “Require local”用"#"注释掉(#Require local)