Still new to RoR

S

slunky

I'm trying to setup rforum or anything else using a database I know I'm
doing something wrong, but I don't know what. I've followed tutorials,
and tried just setting up rforum but I get this error when trying to
attempt to run it:

/usr/local/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 15,
col 3: ` adapter: mysql' (ArgumentError)
from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:459:in `database_configuration'
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:181:in `initialize_database'
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:84:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/initializer.rb:42:in `run'
from ./../config/environment.rb:10
from ./dispatch.fcgi:21

What should be in the adapter portion of the database.yml?
 
T

Timothy Goddard

Is that a stray quote after mysql? You just want something like this:

production:
adapter: mysql
database: my_db
host: my_db_server.com
username: John
password: Doe

Repeat for development and test databases.
 
S

slunky

_/ Timothy Goddard wrote \_
Is that a stray quote after mysql? You just want something like this:

production:
adapter: mysql
database: my_db
host: my_db_server.com
username: John
password: Doe

Repeat for development and test databases.

I found out it was a problem with the app. I've been having trouble
setting up RForum.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,675
Latest member
RollandKna

Latest Threads

Top