This is an old post, but I'll respond anyways for posterity. My summer intern just ran into this problem.
@pmbuko has the correct solution-- create a database named 'dashboard' and make sure that database.yml says 'dashboard' and not something else like 'dashboard_production'.
I'll explain why this error happened. This is a common mistake with Ruby-based software. If you follow the instructions
http://docs.puppetlabs.com/dashboard/manual/1.2/bootstrapping.html , it's easy to see why.
The instructions at say to create a database named 'dashboard':
However, the file `
config/database.yml.example` says the database is named 'dashboard_production':production:
database: dashboard_production
username: dashboard
password:
encoding: utf8
adapter: mysql
If you copy config/database.yml.example to config/database.yml verbatim, then the command `rake RAILS_ENV=production db:migrate` will fail because it's expecting to find a database named 'dashboard_production'.
The simplest fix is to create a database named 'dashboard' and update database.yml to use that name. A longer, but possibly more correct, solution would be to create three databases following the Ruby naming convention (dashboard_production , dashboard_development & dashboard_test) and grant privileges on all three databases. But that is probably more work then necessary for most people, and I suspect that most folks just use a single database named 'dashboard'.
-= Stefan