Database access denied migrating rails database


I’m trying to deploy a new rails app and am having trouble with migrating the database. I have the following production settings in my database.yml:

adapter: mysql
encoding: utf8
database: practice_production
username: phil
password: xxxxxx

yet when I ssh into the server and call rake db:migrate I get the following error:

Access denied for user ‘phil’@‘’ to database ‘practice_production’

It’s taken a bit of effort to get this far and I’m lost now. Can someone point me in the right direction so that I can migrate my database and get the app working?

Thanks in advance!