1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2008
    Rep Power

    Setting up database

    So I used script/server webrick and it works, but how do I use MySQL now? I already configured database.yml... when I try to run script/server without webrick I get this error:

    !!! Path to log file not valid: log/mongrel.log

    Thanks for the help
  2. #2
  3. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Woodland Hills, Los Angeles County, California, USA
    Rep Power
    First, running mysql has nothing to do with running rails. It is a separate daemon (or service, in Windows terms). The parameters in database.yml just tell rails how to connect to the mysql service, but it should already be started.

    With that said, looking at the error message, it appears you've munged the standard to make it run mongrel instead of webrick. I'm guessing you need to start it from the correct directory or try
    script/server mongrel
    and see if it helps.
    Up the Irons
    What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
    "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
    Down with Sharon Osbourne

    "I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo

IMN logo majestic logo threadwatch logo seochat tools logo