1.修改apache\conf\extra\httpd-xampp.conf:

    <Directory "C:/xampp/phpMyAdmin">
        AllowOverride AuthConfig
        #Require local
        Order allow,deny
        Allow from all
        Require all granted
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    </Directory>

2.在phpmyadmin给root用户设置密码
3.修改phpMyAdmin\config.inc.php

$cfg['Servers'][$i]['auth_type'] = 'cookie';

标签: PHP

添加新评论