Вопрос

In a SAAS app, written in PHP, how to create a new mysql database in an existing RDS instance?

The documentation for php api here: http://docs.aws.amazon.com/aws-sdk-php/guide/latest/service-rds.html

doesn't show any such function available under available operations section at the bottom.

How do we do that??

Это было полезно?

Решение

There is no such option provided in RDS API. When you call CreateDBInstance API, you can specify the DBName but that is at the time of creating a new RDS instance. Once you have created the instance, then there is no provision to create a new DB on it.

I would imagine you need to connect via PHP using ODBC (or whatever that PHP supports) to the RDS endpoint and then create a new DB just like you are connecting to a non-RDS remote DB.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top