Mysql error - phpmyadmin: Access denied!

0

I have this problem with phpmyadmin, it was working normally, but when I typed: "mysql" in the linux shell it did not open mysql, just when it was typed: mysql -h 127.0.0.1 -P-3306 -u root. / p>

Then I saw some articles and modified or deleted something from it giving this error:

#2002 - Arquivo ou diretório não encontrado — 
The server is not responding (or the local server's socket is not correctly configured).
mysqli_real_connect(): (HY000/2002): Arquivo ou diretório não encontrado
Connection for controluser as defined in your configuration failed.

    

asked by anonymous 14.09.2017 / 04:08

1 answer

1

I found a similar error in StackOverflow in English

It suggests changing localhost to 127.0.0.1 in the config.inc.php file (in XAMPP, this file must be in xampp/phpmyadmin/config.inc.php ).

$cfg['Servers'][$i]['host'] = '127.0.0.1';

See if it helps.

    
14.09.2017 / 13:26