我是亚马逊RDS的新手。我对这项服务有很多困惑,甚至在亚马逊网站上也找不到任何合理的东西。
我想知道我有一个有数据库的web应用程序。如何将我的数据库与Amazon RDS服务连接。亚马逊网站上的教程没有太多信息。我想要一步一步的教程,但在网上找不到。
我也可以将Amazon RDS连接到我的with应用程序的本地数据库吗?
发布于 2016-01-26 15:37:53
登录Amazon帐户后,连接RDS的步骤如下:
1) From the dashboard, Select RDS Dashboard, Here you can see the RDS instance
2) Select instance and copy Endpoint string
3) Now go to `/etc/phpmyadmin` and open `config.inc.php` file, change in that file to the endpoint which we have copied. Like below: <br>
<?php
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
if (empty($dbserver)) $dbserver = 'mydbinstance.casdv4nzvleb.us-west-2.rds.amazonaws.com';
$cfg['Servers'][$i]['host'] = $dbserver;
?>
4) Final step: change in your DB config file: 'localhost' to that 'mydbinstance.casdv4nzvleb.us-west-2.rds.amazonaws.com'首先向我展示您的端点。
希望这能对你有所帮助。
https://stackoverflow.com/questions/35008565
复制相似问题