Reply to topic
Webrick won't boot on local machine
rdx73


Joined: 04 Feb 2007
Posts: 15
Reply with quote
I removed mySQL and ruby because I was having problems. Reinstalled both. Webrick will boot, but as soon as I edit the database.yml in the config folder I start to get all sorts of error when I try and boot with the command ruby script/server on the command line.

I think Ruby is having issues connecting to mySQL. I checked and rechecked the connection setting in the database.yml:

# MySQL (default setup). Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql
# On MacOS X:
# gem install mysql -- --include=/usr/local/lib
# On Windows:
# gem install mysql
# Choose the win32 build.
# Install MySQL and put its /bin directory on your path.
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter:mysql
database:data
username:root
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:data
username:root
host:localhost

production:
adapter:mysql
database:data
username:root
host:localhost

Can anyone help me or point me in the right direction?
Webrick won't boot on local machine
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic