Project

General

Profile

ActiveRecord::ConnectionNotEstablished

Added by liny lin over 14 years ago

When execute "rake db:migrate", I get an error - "ActiveRecord::ConnectionNotEstablished".
Below is my database setting:
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password:
encoding: utf8
port: 3306

I installed activerecord-jdbcmysql-adapter and can use MySQL Query Browser to connect localhost MySQL server.
I don't why, please help me.

Thanks!


Replies (1)

RE: ActiveRecord::ConnectionNotEstablished - Added by Juan Carlos over 10 years ago

liny lin wrote:

When execute "rake db:migrate", I get an error - "ActiveRecord::ConnectionNotEstablished".
Below is my database setting:
production:
adapter: mysql
database: redmine
host: localhost
username: redmine
password:
encoding: utf8
port: 3306

I installed activerecord-jdbcmysql-adapter and can use MySQL Query Browser to connect localhost MySQL server.
I don't why, please help me.

I had a similar problem, what i notice was that /config/environment.rb file was missing, unzip it again and done.

Thanks!

    (1-1/1)