Describe the bug
When I try to login with correct login and password I'm getting an following error: mysqli::real_connect(): (HY000/2002): Permission denied
To Reproduce
(0. Setup phpMyAdmin;)
- Open phpMyAdmin;
- Enter correct login and password;
- Press "Go" button.
Expected behavior
I successfully login as entered user and can see databases and can do something with them.
Screenshots

Server configuration
- Operating system: CentOS 8
- Web server: nginx/1.18.0
- Database version:
mysql Ver 8.0.22 for Linux on x86_64 (MySQL Community Server - GPL)
- PHP version:
PHP 7.4.13 (cli) (built: Nov 24 2020 10:03:34) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies
- phpMyAdmin version:
5.0.4
Client configuration
- Browser: Chrome 87.0.4280.88
- Operating system: Windows 10 Home Single Language
Additional context
Described error happens with this setting's value: $cfg['Servers'][$i]['host'] = 'localhost';. When I changing value of this setting to 127.0.0.1 instead of localhost and entering with correct login and password nothing happens (just reloads page)
Describe the bug
When I try to login with correct login and password I'm getting an following error:
mysqli::real_connect(): (HY000/2002): Permission deniedTo Reproduce
(0. Setup phpMyAdmin;)
Expected behavior
I successfully login as entered user and can see databases and can do something with them.
Screenshots
Server configuration
mysql Ver 8.0.22 for Linux on x86_64 (MySQL Community Server - GPL)PHP 7.4.13 (cli) (built: Nov 24 2020 10:03:34) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.13, Copyright (c), by Zend Technologies5.0.4Client configuration
Additional context
Described error happens with this setting's value:
$cfg['Servers'][$i]['host'] = 'localhost';. When I changing value of this setting to127.0.0.1instead oflocalhostand entering with correct login and password nothing happens (just reloads page)