Skip to content

Instantly share code, notes, and snippets.

@larruda
Created July 25, 2013 01:53
Show Gist options
  • Save larruda/6076266 to your computer and use it in GitHub Desktop.
Save larruda/6076266 to your computer and use it in GitHub Desktop.
Drupal database settings for using on Amazon Web Services (AWS) environment with Amazon RDS and Amazon EC2.
<?php
$databases = array (
'default' =>
array (
'default' =>
array (
'database' => $_SERVER['RDS_DB_NAME'],
'username' => $_SERVER['RDS_USERNAME'],
'password' => $_SERVER['RDS_PASSWORD'],
'host' => $_SERVER['RDS_HOSTNAME'],
'port' => $_SERVER['RDS_PORT'],
'driver' => 'mysql',
'prefix' => '',
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment