title: Error establishing a database connection Amazon EC2 - after moving my wordpress blog
body: <p>I am getting the error: "error establishing a database connection" after moving my wordpress blog to Amazon EC2. I've checked the wp-config.php file and settings are ok (localhost, password and username).</p>
  
  <p>I've read many of the questions and answers here but nothing helped me.</p>
  
  <p>I have shell access so I can check everything that you need me to do. Maybe I should look at the configuration file for phpmyadmin to see what db connection settings are there, because phpmyadmin works, but I don't know where it is.</p>
  
  <p>Thanks</p>