r3579@sedna: jeremy | 2005-10-13 12:02:01 -0700
decrease need to edit AR mysql connect details by setting socket to mysql_config --socket. if it doesn't work on your platform, well, you would've had to edit it anyway. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2558 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
896c9c9d69
commit
33eb297edf
|
@ -9,16 +9,14 @@ db2 = 'activerecord_unittest2'
|
|||
|
||||
ActiveRecord::Base.establish_connection(
|
||||
:adapter => "mysql",
|
||||
:host => "localhost",
|
||||
:socket => `mysql_config --socket`,
|
||||
:username => "rails",
|
||||
:password => "",
|
||||
:database => db1
|
||||
)
|
||||
|
||||
Course.establish_connection(
|
||||
:adapter => "mysql",
|
||||
:host => "localhost",
|
||||
:socket => `mysql_config --socket`,
|
||||
:username => "rails",
|
||||
:password => "",
|
||||
:database => db2
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue