I've been trying to follow the docs for creating a plugin migration (https://craftcms.com/docs/plugins/migrations) but any attempts to run yiic seem to die with:
CDbConnection failed to open the DB connection.
My Google-fu has not come up with any relevant answers. This is with Craft setup in a Vagrant box, if that makes a difference.