简体   繁体   中英

phpMyAdmin: Can't log in with user other than root

I just installed the IIS server (Windows Server 2008 R2), together with PHP 7.2.8 and MySQL 8.0.12. I created some users in the workbench, eg 'pma'/'pmapassword' and gave it full privileges, but when I try to log in, I get the following error:

mysqli_real_connect(): PHP was built without openssl extension, can't send password encrypted

and

mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: YES)

However, when I log in with my root account, it works! Obviously I need more than a root account and I would really like to know why this is happening, as well how to fix it!

For now my config.inc.php is real minimal (but I tried the 'config' login method as well):

<?php
 $cfg['blowfish_secret'] = 'my_blowfish_secret_here';  // use here a 
 value of your choice

 $i=0;
 $i++;
 $cfg['Servers'][$i]['auth_type']     = 'cookie';
?>

Thank you in advance for your help!

Edit: Here is the php.ini .

创建用户时,可以选择一个主机,因此该主机应与尝试登录的主机相同。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM