Permalink
Browse files

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
  • Loading branch information...
1 parent 896c9c9 commit 33eb297edf93da6665192be9cabd978dc314950c @jeremy jeremy committed Oct 13, 2005
Showing with 2 additions and 4 deletions.
  1. +2 −4 activerecord/test/connections/native_mysql/connection.rb
@@ -9,16 +9,14 @@
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
)

0 comments on commit 33eb297

Please sign in to comment.