Skip to content

Instantly share code, notes, and snippets.

@mikewadhera
Created June 14, 2010 22:47
Show Gist options
  • Save mikewadhera/438437 to your computer and use it in GitHub Desktop.
Save mikewadhera/438437 to your computer and use it in GitHub Desktop.
(rdb:5) @config
{:url=>"jdbc:mysql:replication//localhost:3306/involver_dev?zeroDateTimeBehavior=convertToNull&jdbcCompliantTruncation=false&useUnicode=true&characterEncoding=utf8", :driver=>"com.mysql.jdbc.ReplicationDriver", :adapter=>"jdbcmysql", :username=>"root", :password=>"letmein", :port=>3306}
(rdb:5) spec
JdbcSpec::MySQL
(rdb:5) connection_class
ActiveRecord::ConnectionAdapters::JdbcConnection
(rdb:5) connection_class.new(@config)
ActiveRecord::ConnectionNotEstablished Exception: no connection available
(rdb:5) connection
nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment