diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-10-13 19:06:04 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-10-13 19:06:04 +0000 |
commit | 33eb297edf93da6665192be9cabd978dc314950c (patch) | |
tree | fc2c94b736e6a822ebcc04f1c7474cc700c26759 /activerecord/test/connections/native_mysql | |
parent | 896c9c9d699e83a39dfc7c5fb5a81289724aeffd (diff) | |
download | rails-33eb297edf93da6665192be9cabd978dc314950c.tar.gz rails-33eb297edf93da6665192be9cabd978dc314950c.tar.bz2 rails-33eb297edf93da6665192be9cabd978dc314950c.zip |
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
Diffstat (limited to 'activerecord/test/connections/native_mysql')
-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 ) |