简体   繁体   English

WAMP 服务器 PhpMyAdmin 未使用有效凭据进行身份验证

[英]WAMP server PhpMyAdmin not authenticating with valid credentials

WAMP server MySQL is working fine in CLI. WAMP 服务器 MySQL 在 CLI 中运行良好。 But PHPMyAdmin is not working .但是PHPMyAdmin 不工作 I had MySQL and workbench installed with 3306 port (before I install the WAMP server).我有 MySQL 和工作台安装3306端口(在我安装 WAMP 服务器之前)。 This is why My WAMP server MySQL wasn't working, I changed the port to 3309 in MySQL my.ini file, it's working fine in CLI but not working in PHPMyAdmin.这就是为什么我的 WAMP 服务器 MySQL 不工作,我在 MySQL my.ini 文件中将端口更改为3309 ,它在 CLI 中工作正常但在 PHPMyAdmin 中不工作。

I have already tried alter user 'username'@'localhost' identified with mysql_native_password by 'password';我已经尝试过alter user 'username'@'localhost' identified with mysql_native_password by 'password'; still not working in with PHPMyAdmin but CLI.仍然不能使用 PHPMyAdmin 但 CLI。 I don't want to downgrade my MySQL version.我不想降级我的 MySQL 版本。

MySQL Version 8.0.21 MySQL 版本 8.0.21

ERROR:错误: 在此处输入图像描述

Search for libraries/config.default.php搜索libraries/config.default.php

and change和改变

$cfg['Servers'][$i]['port']

it should be empty default is 3306 and add 3309它应该是空的默认是 3306 并添加 3309

Addinally you have to run the installer again此外,您必须再次运行安装程序

  • executing the install file执行安装文件
  • select "Reconfigure" over the mysql server在 mysql 服务器上选择“重新配置”
  • In Authentication Method tab, select "Use Legacy Authentication在身份验证方法选项卡中,选择“使用传统身份验证

Method"方法”

If you must have 2 MySQL instances running then use the features built into WAMPServer to amend the MySQL port number如果您必须运行 2 个 MySQL 实例,请使用 WAMPServer 内置的功能来修改 MySQL 端口号

RIGHT Click on the WAMPServer icon in the system tray and click the TOOLS menu item右键单击系统托盘中的 WAMPServer 图标,然后单击工具菜单项

See below, then click on "Use port other than 3306" and WAMPServer will update ALL the required files so that you can use a non standard port for MySQL见下文,然后单击“使用 3306 以外的端口”,WAMPServer 将更新所有必需的文件,以便您可以使用 MySQL 的非标准端口

在此处输入图片说明

You can choose at the beginning the MariaDB server and on username type root, and password remains empty, after once you will be connected with Maria Db, switcher to MySQL, screenswitcherserver and do the same thing side username and password您可以在开始时选择 MariaDB 服务器,用户名类型为 root,密码为空,一旦您将与 Maria Db 连接后,切换到 MySQL, screensswitcherserver并在用户名和密码方面做同样的事情

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

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