The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Connection times out

Run the command: ruby script\server to start the server.
Now open your browser and browse to http://127.0.0.1:3000/

I'm stuck because when I type http://127.0.0.1:3000/ in my browser, it
takes forever to open, and after several minutes it times out. I have
added the 3000 port to my exception list (tcp & udp) but with no luck.

The Webricks server is launched normally and doesn't report any error.

I've googled it; it has something to do with a missing .dll file or something. The search that xmitchx is to do with generic loss of mysql server issues. I've restarted apache lots of times, I'll try restarting mysql -- although I've also tried restarting computer as a way of restarting everything (ruby, etc) but no matter what I do it keeps reporting "Exception caught"

ActiveRecord::StatementInvalid in Category#index

Mysql::Error: Lost connection to MySQL server during query: SELECT COUNT(*) FROM categories

Because the ideal platform of choice is a *nix/POSIX-compatible platform such as Linux or OSX, for both development and deployment.

Saying that, I didn't have any problems setting it up on the Windows XP laptop I'm using at the moment. I simply used the Ruby one-click installer, installed Rails and dependencies using RubyGems, and installed MySQL 5. The database connection worked out of the box for me.

I upgraded, and got it mysql 5 to run, but its still returning the same undefined constant error.

I'm this close to giving up on RoR -- I might use PHP on Trax instead.

It should work with MySQL4 just the same. Give up on RoR if you want but it will be your loss

Have you tried the Rails mailing list? You might have more luck there for strange, obscure errors. The problem probably isn't with Rails itself, more like some other part of your setup. Are you sure there isn't a pebkas?

It did exist, but not in that folder (was in mysql folder and php folder respectively), I moved the .dll file to the path quoted, restarted apache/ruby and mysql -- but it still complains of the error.

It sounds like you don't have the mysql adapter installed correctly

I looked on the web and found a site describing the mysql adapter, but not what to do with it, its a ruby file; do I run ruby file, do I put it in my ruby folder, do I put it in my test program folder in htdocs? It doesn't say.

I gave up trying to do it manually and uninstalled mysql5, apache2, etc and put on instant rails instead -- after following the instructions I got the test program to run (mycookbook.com) and it seems to be working fine now.

If you're having trouble with rails, I'd advise you to look at Instant Rails, yes - it does have all apache, mysql, php on there, and I'm gonna have to re-configure everything; but it does look like I have rails working (I won't know until I've done some test programs).

Although it is a shame I wasn't able to install it cleanly without a system like Instant Rails, I am happy that I've at least made a small but significant step.