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
On 7/28/06, Akanksha Baid <akanksha.baid@gmail.com>
wrote:>
> 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...
>
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060728/1075ab1c/attachment-0001.html