Hi all! I am completely new to RoR and I have runned into a problem. I
have followed an online course for RoR on Lynda.com and everything has
worked out well until I should change to database.yml file.
Instead of the tutors text “host: localhost” I get “socket: /tmp/
mysql.sock” in development enviroment
I thought I would give it a try to continue anyway but when I later
try to do “rake db:migrate” after activating my webserver, I get this
error:
rake aborted!
syntax error on line 18, col 2: ` host: localhost’
Hi all! I am completely new to RoR and I have runned into a problem. I
have followed an online course for RoR on Lynda.com and everything has
worked out well until I should change to database.yml file.
Instead of the tutors text “host: localhost” I get “socket: /tmp/
mysql.sock” in development enviroment
my database.yml looks like this:
host: localhost
db…
user…
passwd…
adapter…
socket:
host is a must, socket is an option. the socket describes the path to
your database connection. in ubuntu its /var/run/mysqld/mysqld.sock
I am sorry but I am too much of a beginner to see what you mean by
commenting out of the socket-line… I guess that you have to bring it
down to a 3 year olds level
I am sorry but I am too much of a beginner to see what you mean by
commenting out of the socket-line… I guess that you have to bring it
down to a 3 year olds level
Comment out: place a # symbol at the start of the line.
It’s also worth checking that you’ve indented with spaces not tabs -
yaml doesn’t like tabs
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.