简体   繁体   English

phpMyAdmin:除root用户外,无法使用其他用户登录

[英]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. 我刚刚安装了IIS服务器(Windows Server 2008 R2),以及PHP 7.2.8和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: 我在工作台中创建了一些用户,例如'pma'/'pmapassword'并赋予了其全部权限,但是当我尝试登录时,出现以下错误:

mysqli_real_connect(): PHP was built without openssl extension, can't send password encrypted mysqli_real_connect():PHP是在没有openssl扩展的情况下构建的,无法发送已加密的密码

and

mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: YES) mysqli_real_connect():(HY000 / 1045):用户'pma'@'localhost'的访问被拒绝(使用密码:是)

However, when I log in with my root account, it works! 但是,当我使用root帐户登录时,它可以工作! 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! 显然,我需要的不仅仅是root帐户,而且我真的很想知道为什么会这样,以及如何解决它!

For now my config.inc.php is real minimal (but I tried the 'config' login method as well): 现在,我的config.inc.php确实很小(但是我也尝试了'config'登录方法):

<?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 . 编辑:这是php.ini

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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