【发布时间】:2020-08-27 09:50:38
【问题描述】:
我正在尝试将 PhpMyAdmin 的 XAMPP 安装连接到我的 AWS RDS 实例。我做了以下配置:config.inc.php:
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'admin';
$cfg['Servers'][$i]['password'] = '*****';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '*******.us-east-2.rds.amazonaws.com';
$cfg['Servers'][$i]['port'] = '3306';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
一切正常,因为 PhpMyAdmin 确实从下拉列表中选择了它。但是当我选择连接时,它需要永远并最终给出以下错误(我已经检查了安全 grps,它允许所有流量。有没有办法验证我的登录名和安全组):
MySQL said: Documentation
Cannot connect: invalid settings.
mysqli::real_connect(): (HY000/2002): Connection timed out
Connection for controluser as defined in your configuration failed.
mysqli::real_connect(): (HY000/2002): Connection timed out
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
【问题讨论】:
-
转到 xampp 控制台并尝试使用命令“mysql -h rdshosthere -u username -p” .. 替换主机和用户名
-
没有回应。我应该 cd 到任何特定目录来运行命令吗?
-
mysql 正在通过命令行工作...对吗?
-
从 rds 方面清除错误...在此之前您需要确认...这就是为什么告诉检查..
-
我不确定我是否理解。你的建议没有得到回应,所以我不知道如何解释。请更具体地了解如何在 cmd 行上检查 mysql
标签: mysql amazon-web-services phpmyadmin xampp amazon-rds