Setting up rails to run with MySQL

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

Make sure that you have a log directory in your rails application’s
root.

Make sure that you have a log directory in yo

Do you have your config\database.yml set up something like this:

development:
adapter: mysql
database: myapp_development
username: root
password: my_pswd
host: localhost

Warning: The database defined as ‘test’ will be erased and

re-generated from your development database when you run ‘rake’.

Do not set this db to the same as development or production.

test:
adapter: mysql
database: myapp_test
username: root
password: my_pswd
host: localhost

production:
adapter: mysql
database: myapp_production
username: root
password: my_pswd
host: localhost

HTH,
Richard

On Jul 9, 11:58 am, Justin To [email protected]