Bugs item #23141, was opened at 2008-12-08 14:41
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=23141&group_id=2014

Category: AR-JDBC
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Tophe Vigny (tophe)
Assigned to: Nobody (None)
Summary: mysql connection error

Initial Comment:
hi all,

I have an error
Rails/infoController#properties

The driver encountered an error: java.sql.SQLException: Unknown initial 
character set index '48' received from server. Initial client character set can 
be forced via the 'characterEncoding' property.

RAILS_ROOT: /usr/src/jruby-1.1.6RC1/helloworld
Application Trace | Framework Trace | Full Trace

/usr/src/jruby-1.1.6RC1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9/lib/active_record/connection_adapters/jdbc_adapter.rb:315:in
 `initialize'
/usr/src/jruby-1.1.6RC1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9/lib/active_record/connection_adapters/jdbc_adapter.rb:46:in
 `jdbc_connection'
/usr/src/jruby-1.1.6RC1/lib/ruby/gems/1.8/gems/activerecord-jdbc-adapter-0.9/lib/jdbc_adapter/jdbc_mysql.rb:16:in
 `mysql_connection'
/usr/src/jruby-1.1.6RC1/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:223:in
 `new_connection'
/usr/src/jruby-1.1.6RC1/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:245:in
 `checkout_new_connection'
/usr/src/jruby-1.1.6RC1/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:188:in
 `checkout'
/usr/src/jruby-1.1.6RC1/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in
 `loop'
/usr/src/jruby-1.1.6RC1/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:184:in
 `checkout'
/usr/src/jruby-1.1.6RC1/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'

my database configuration is 
development:
  adapter: jdbcmysql
  encoding: utf8
  database: my
  pool: 5
  username: 
  password: 
  host: db

config
actionmailer (2.2.2)
actionpack (2.2.2)
activerecord (2.2.2)
activerecord-jdbc-adapter (0.9)
activerecord-jdbcmysql-adapter (0.9)
activeresource (2.2.2)
activesupport (2.2.2)
glassfish (0.9.1)
jdbc-mysql (5.0.4)
jruby-openssl (0.3)
rack (0.4.0)
rails (2.2.2)
rake (0.8.3)
rspec (1.1.11)
sources (0.0.1)

I try without the encoding parameters but, I have always the same error.
anny help ?



----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=23141&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to