mirror of
https://github.com/github/rails.git
synced 2026-01-26 14:58:11 -05:00
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:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user