我忘记了phpmyadmin的root密码

时间:2020-08-01 22:07:49

标签: mysql amazon-web-services phpmyadmin passwords bitnami

每个人。我不记得我在bitnami中使用PHPMyAdmin的root密码了。我使用Amazon Web Server。 我已经在Google中搜索过,但是什么也没找到。 enter image description here

2 个答案:

答案 0 :(得分:0)

如果您有权访问 phpMyadmin 配置文件,则可以在“身份验证”部分的config.inc.php中找到密码。该文件位于 phpMyadmin 文件夹的根目录上。

/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
$cfg['Lang'] = '';

答案 1 :(得分:0)

Bitnami工程师在这里

使用phpMyAdmin访问数据库时使用的凭据与使用命令行访问数据库时使用的凭据相同。 phpMyAdmin没有任何配置的凭据。在这种情况下,如果您没有更改首次启动实例时配置的默认密码,则需要使用启动日志文件中或运行此命令后显示的密码

sudo cat /home/bitnami/bitnami_credentials

您可以在此处了解有关默认凭据的更多信息:https://docs.bitnami.com/aws/faq/get-started/find-credentials/

在尝试使用phpMyAdmin访问数据库之前,请通过在命令行中键入此命令来确保所有服务都在运行

sudo /opt/bitnami/ctlscript.sh status