There are two solutions: (it is recommended to use the second one)
1. Configure config.inc.php under phpmyadmin and change the cookie to http
Open the browser and enter the management address. A login window will pop up. Enter your username and password.
But it’s very unaccustomed, and after entering the management interface, it will pop up again when you choose to log out, making it seem like you need a password to log out.
2. Compare the configuration of ubuntu's phpmyadmin. There is such a configuration in ubuntu's config.inc.php
Check /var/lib/phpmyadmin/blowfish_secret.inc.php again, there is only one sentence
Then the "$cfg['blowfish_secret'] =" statement in phpmyadmin installed under CentOS is in config.inc.php
Restart httpd and open the management page
This is what I am accustomed to, but when I enter root and password again, the system prompts me that the password for root@localhost is wrong: error 'Access denied for user 'root'@'localhost' (using password: NO), and I always cannot enter. Go, so I cleared the browser’s cookies, and then entered normally