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:
Jeremy Kemper 2005-10-13 19:06:04 +00:00
parent 896c9c9d69
commit 33eb297edf
1 changed files with 2 additions and 4 deletions

View File

@ -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
)