Ruby Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesRuby Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 6th, 2009, 03:01 AM
Z.K. Z.K. is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 184 Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level)Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level)Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level)Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level)Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level)Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 1 h 40 m 47 sec
Reputation Power: 28
Question Rails MySQL and mongrel problem

After creating a project like
rails -d mysql hello4

and then starting the server as in
ruby script/server

mongrel trys to start, but then fails. I have pasted the error below. I was wondering if anyone knows what this means and how to fix it. I believe it is involved with the databases, but I am unsure exactly how to fix this.

error:
=> Booting Mongrel
=> Rails 2.3.5 application starting on http://0.0.0.0:3000
c:/ruby/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 24, col 2: ` h
ost: localhost' (ArgumentError)
from c:/ruby/lib/ruby/1.8/yaml.rb:133:in `load'
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:902:i
n `database_configuration'
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:437:i
n `initialize_database'
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:141:i
n `process'
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:i
n `send'
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/initializer.rb:113:i
n `run'
from D:/My Documents/Rails_Projects/hello4/config/environment.rb:9
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_suppo
rt/dependencies.rb:156:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_suppo
rt/dependencies.rb:521:in `new_constants_in'
from c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_suppo
rt/dependencies.rb:156:in `require'
from c:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/commands/server.rb:8
4
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `ge
m_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `re
quire'
from script/server:3


Reply With Quote
  #2  
Old December 7th, 2009, 03:53 PM
Z.K. Z.K. is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2009
Posts: 184 Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level)Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level)Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level)Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level)Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level)Z.K. User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 1 h 40 m 47 sec
Reputation Power: 28
Okay, I figured it out. In the database.yml file, passwordassword has to have a space after the : and cannot contain punctuation characters as the first character.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesRuby Programming > Rails MySQL and mongrel problem

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap