Error trying to login to localhost through PhpMyAdmin

0

I'm trying to connect to my local database and am getting the following errors:

  •   

    # 1045 - Access denied for user 'root'@'187.20.253.86' (using password: NO)

  •   

    mysqli_real_connect (): (HY000 / 1045): Access denied for user 'root'@'187.20.253.86' (using password: NO)

  • I think it's because it's trying to connect to 187.20.253.86 and not localhost , but even if that's the problem, I do not know how to solve it.

    I'm using WampServer 3.0.6 .

        
    asked by anonymous 23.07.2017 / 19:25

    1 answer

    0

    Look for the file config.inc.php that should probably be in C:\wamp64\apps\phpmyadmin4.6.4 and open it with some text editor.

    Note: Be careful not to confuse with some file called config.sample.inc.php !

    Look for the line with these arguments:

    $cfg['Servers'][$i]['host'] = '/*OUTRO IP*/';
    

    And change the value to localhost :

    $cfg['Servers'][$i]['host'] = 'localhost';
    
        
    23.07.2017 / 21:27