Deployment/Database Error

Hi, I’m trying to deploy a ruby project and I keep getting the
following error

./script/…/config/…/vendor/rails/activerecord/lib/active_record/
connection_adapters/abstract/connection_specification.rb:204:in
establish_connection': development database is not configured (ActiveRecord::AdapterNotSpecified) from ./script/../config/../vendor/rails/activerecord/lib/ active_record/connection_adapters/abstract/connection_specification.rb: 195:inestablish_connection’
from ./script/…/config/…/vendor/rails/railties/lib/
initializer.rb:229:in initialize_database' from ./script/../config/../vendor/rails/railties/lib/ initializer.rb:88:inprocess’
from ./script/…/config/…/vendor/rails/railties/lib/
initializer.rb:43:in send' from ./script/../config/../vendor/rails/railties/lib/ initializer.rb:43:inrun’
from /home/predictoball/webapps/prediction/config/
environment.rb:13
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:27:in gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:inrequire’
… 23 levels…
from ./script/…/config/…/vendor/rails/activesupport/lib/
active_support/dependencies.rb:495:in `require’
from ./script/…/config/…/vendor/rails/railties/lib/commands/
server.rb:39

It says database is not configured but I have updated the database.yml
file to point to the databases I’ve created. Here it is:

development:
adapter: mysql
database: predictoball
username: predictoball
password: 123456
host: localhost

and the same thing copied and pasted for production.

Any ideas?

So did you make your mysql started?

On Thu, May 29, 2008 at 5:44 PM, Craig O Connor [email protected]

Thanks a lot. That worked fine.

On 29 May 2008, at 10:44, Craig O Connor wrote:

adapter: mysql
database: predictoball
username: predictoball
password: 123456
host: localhost

it’s not indented properly. that should be

development:
adapter: mysql
database: predictoball
username: predictoball
password: 123456
host: localhost

Fred