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>