Displaying 1 result from an estimated 1 matches for "orm_test".
Did you mean:
arm_test
2005 May 22
1
ActiveRecord: can not connect to mysql
...#39;
require_gem ''activerecord'', ">= 1.10.1"
ActiveRecord::Base.establish_connection(
:adapter => "mysql",
:host => "localhost",
:username => "root",
:password => "passwd",
:database => "orm_test"
)
class Eagle < ActiveRecord::Base
end
eagle = Eagle.new
puts eagle.instance_methods
==========================
username, database name and password are correct.
but I get a lot of warnings and an error:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.4/lib/active_support/class_...