简体   繁体   中英

Connect Amazon RDS with database

I am new to Amazon RDS. I have much confusions about this service and could not got any reasonable stuff on internet even on Amazon website.

I want to know that I have a web application having database. How can I connect my database with Amazon RDS service. Tutorials on amazon website have not much information. I want step by step tutorial, but could not found any on internet.

Can I connect Amazon RDS with my webapp's local database too?

After logged into Amazon Account, Steps to connect 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'

First show me your Endpoint .
Hope this is helpful.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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