On Jul 9, 2009, at 7:10 AM, Jason Cheung wrote:
> I start the MySQL server with the "ruby script/server" command.
> It loads fine.
Actaully, that's how you are starting you Rails server, most likely.
Usually a MySQL server is started with a command like mysqld_safe.
> When I go to localhost:3000, the server immediately shuts down and
> throws out an error. It says:
> C:\ruby\lib\ruby\gems\1.8\gems\activerecord-2.3.2\lib\active_record
> \connection_adapters\abstract_adapter.rb:39:
> [BUG] Segmentation fault ruby 1.8.6 (2008-08-11) [i386-mswin32].
> I've been looking around online and many have the same error occuring.
> I'm running mysql 5.0.83, rails 2.3.2, ruby 1.8.6 and rubygems 1.3.4.
>
> Can anybody help!?
There's some nasty bug in whatever code Rails needs to load to display
the homepage of your site. It really shouldn't be segfaulting, but
that's the issue.
The error looks like it is probably related to connecting to your
database, just because of where it comes from in the code. Here are
some reality check type questions:
* Do you have a database installed?
* Is that database running?
* Is your config/database.yml file correctly pointed at that database?
Beyond that, you may find better help on the Rails mailing list:
http://groups.google.com/group/rubyonrails-talkJames Edward Gray II