[Rails] Re: db connection problem: Mac X, MySQL 5, Rails 1
Graeme Shaw
GraemeShaw at bigfoot.com
Sun Jan 22 10:58:56 GMT 2006
Doug,
Did you ever resolve this problem? I'm having what sounds to be the
same problem.
I've followed this installation guide:
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger
and when I attempted to follow this tutorial:
http://www.onlamp.com/pub/a/onlamp/2005/01/20/rails.html
I encounter the same problem you describe the first time I try to
connect to a database.
I'm using OS X 10.4.4, mysql 4.1.15, Ruby 1.8.2 (even though the above
setup tutorial apparently had me install 1.8.4, rails_info/properties
says it's 1.8.2), Rails 1, RubyGems 0.8.10.
If Doug, or anyone else has any suggestions for resolving this, it would
be greatly appreciated, as it's a very frustrating problem!
Thanks,
Graeme
Doug Hernandez wrote:
> This has taken me quite a bit of time to sort out. The problem is this:
>
> Whenever my Rails app tries to query the db, it hangs forever.
>
> Having searched 5000+ emails to this group, I've not found an answer to
> my
> problem. I'd be happy to turn on logging, but can't seem to get the Mac
> install of MySQL to boot up with the --log option set. I tried running
> mysqld and mysql_safe manually, but encountered a frustrating lock.pid
> file
> problem.
>
> There are no error messages printed to the screen, nor are there any
> messages in the WebRick monitor. (Oh yeah... I'm using WebRick). I
> tested
> Rails without a db-hit, and it worked fine.
>
> Anyone got any ideas?
--
Posted via http://www.ruby-forum.com/.
More information about the Rails
mailing list