 <p>I didn't realise this, and now I feel quite stupid. However, maybe someone who is just starting out will be able to save themselves a few minutes of head-bashing by this answer.</p> <p>It turns out that changes to the database.yml file are only applied once the apache service is restarted/reloaded. Everything is working fine now.</p>