I downloaded and installed apache2.4+php7, and set phpmyadmin in C:/Program Files/tomcat/webapps/ROOT. I also set Documentroot of apache to C:/Program Files/tomcat/webapps/ROOT. I can log into MySQL in cmd correctly, my user id is root, password is root. apache2.4 is running.
When I type "http://localhost/phpmyadmin", I can get into the login page below
I edited config.default.php in C:/Program Files/tomcat/webapps/ROOT/phpmyadmin/libraries, here are some settings I edited:
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpmyadmin/';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['blowfish_secret'] = 'root';
$cfg['DefaultLang'] = 'zh';
Howerver, when I type name and password into it, it shows It says
mysqli_real_connect(): (HY000/1862): Unknown error 1862
I totally don't know how to solve it, can someone help me?