我无法访问我的localhost / phpmyadmin(windows)

时间:2017-04-11 10:24:02

标签: php mysql phpmyadmin xampp

我有这个错误:

enter image description here

我进入C:\xampp\phpMyAdmin,这是我的config.inc.php

     <?php
        /*
         * This is needed for cookie based authentication to encrypt password in
         * cookie
         */
        $cfg['blowfish_secret'] = 'xampp'; /* YOU SHOULD CHANGE THIS FOR A MORE SECURE COOKIE AUTH! */

        /*
         * Servers configuration
         */
        $i = 0;

        /*
         * First server
         */
        $i++;
        //I think there are something that I wrong
        // Other configuration
        // This is  a part of config.inc.php file
        /* Authentication type and info */
        $cfg['Servers'][$i]['auth_type'] = 'config';
        $cfg['Servers'][$i]['user'] = 'root';
        $cfg['Servers'][$i]['password'] = 'root';
        $cfg['Servers'][$i]['extension'] = 'mysqli';
        $cfg['Servers'][$i]['AllowNoPassword'] = true;
        $cfg['Lang'] = '';
        //other configuration
        /* Bind to the localhost ipv4 address and tcpsdfsdf
sdfsdfsdfsdf */
        $cfg['Servers'][$i]['host'] = '127.0.0.1';
        $cfg['Servers'][$i]['connect_type'] = 'tcp';

        /* User for advanced features */
        $cfg['Servers'][$i]['controluser'] = 'pma';
        $cfg['Servers'][$i]['controlpass'] = '';

       ?>

1 个答案:

答案 0 :(得分:0)

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

试试这个 - &gt;

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