Rails and MySql Problem

Hello everyone, I am pretty new to Ruby on Rails. Following this
tutorial, I am stuck with this error

Here’s my analysis:

  1. Rails is trying to connect to MySql server at localhost but DreamHost doesn’t allow.
  2. I’ve edited database.yml to required changes with “host: mysql.mydomain.com
  3. I need a way to refresh RoR for changes to appear.

Thanks in advance