1.首先假定你的xampp安装在了/opt/lampp/目录下。
2.打开文件/opt/lampp/etc/extra/httpd-xampp.conf
3.找到<Directory “/opt/lampp/phpmyadmin”>
4.在其中添加一行:Require all granted
5.最终的效果是:
# since XAMPP 1.4.3
<Directory “/opt/lampp/phpMyAdmin-3.4.5-english”>
AllowOverride AuthConfig Limit
Require all granted
Order allow,deny
Allow from all
</Directory>
6.这样再重新刷新一下或者重启一下浏览器就可以访问phpmyadmin了!