Forum: Ruby on Rails Sql error using MAMP with rails 1.1

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
69efb3b74703ceffbd6603d044a639f6?d=identicon&s=25 Gopal Balaji (gbalaji)
on 2006-03-28 14:10
Hi,

I am newbie and i am using MAMP with rails for trying out few things in
web development.

I just upgraded to rails 1.1 and created a new rails depot project and
when i just gone to change my database.yml, I get this

-------------------------------------------------------------------------------
development:
  adapter: mysql
  database: depot_development
  username: root
  password: root
  host: localhost
  --------------------------------------------------------------------------

and I added

socket: /Applications/MAMP/tmp/mysql/mysql.sock to the end of database.

and if i generate scaffold i get this error

*Can't connect to local MySQL server through socket '/tmp/mysql.sock'
(2) *

how can i connect my MAMP socket to the database.yml file and go on with
the project.

thanx
g.balaji
This topic is locked and can not be replied to.