diff options
-rw-r--r-- | activerecord/test/connections/native_mysql/connection.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/activerecord/test/connections/native_mysql/connection.rb b/activerecord/test/connections/native_mysql/connection.rb index b73023f337..f918ee14d2 100644 --- a/activerecord/test/connections/native_mysql/connection.rb +++ b/activerecord/test/connections/native_mysql/connection.rb @@ -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 ) |