需要修改一下服务器端的配置,我们找到 /opt/lampp/etc/extra/httpd-xampp.conf文件,
<Directory "/opt/lampp/phpmyadmin">
AllowOverride AuthConfig Limit
# Require local
# ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
Allow from all
Require all granted
</Directory>
重启就可以了