Bugs: Browse | Submit New | Admin

[#23141] mysql connection error

Date:
2008-12-08 14:41
Priority:
3
Submitted By:
Tophe Vigny (tophe)
Assigned To:
Nobody (None)
Category:
AR-JDBC
State:
Open
Summary:
mysql connection error

Detailed description
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/connect
ion_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/connect
ion_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/connect
ion_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/connect
ion_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/connect
ion_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 ?

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item