Putty mysql error

I get the following mysql error when I try to connect to my Linux
machine using putty.

Unknown database ‘db_develoment’ (Mysql::Error)
any idea what i need to do to avoid this.

The same code works pefectly well on the Linux box.

/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/ven­dor/mysql.rb:508:i

n `read’: Unknown database ‘db_develoment’ (Mysql::Error)
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/ven­dor/m

ysql.rb:150:in `real_connect’
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/con­necti

on_adapters/mysql_adapter.rb:331:in `connect’
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/con­necti

on_adapters/mysql_adapter.rb:88:in `initialize’
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/con­necti

on_adapters/mysql_adapter.rb:37:in `mysql_connection’
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/con­necti

on_adapters/abstract/connection_specification.rb:251:in
`connection_without_query_cache=’
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/que­ry_ca

che.rb:54:in `connection=’
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/con­necti

on_adapters/abstract/connection_specification.rb:220:in
`retrieve_connection’
from
/usr/local/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/con­necti

on_adapters/abstract/connection_specification.rb:78:in `connection’
… 6 levels…

Hi Akanksha,

I’m not yet sure what yuo are doing. Have you set up a putty tunnel on
port
3306 from your development machine to your database machine?

Are you sure the tunnel works. What does telnet
ip-of-your-database-machine
3306 tell you?

Cheers,
Jan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs