Ruby On Rails in MAMP mySQL Snow Leopard

2019-04-05 04:15发布

I'm trying to find step-by-step instructions to run Ruby on Rails on MAMP server and use MAMP's mySQL database. I am on Snow Leopard also. I have read Hivelogic's article about this but I really don't want to compile rails, ruby and mySQL.

Anyone have any suggestions

2条回答
Animai°情兽
2楼-- · 2019-04-05 04:33

It is very simple, just edit your socket to MAMP's mysql socket in your rail's /config/database.yml

development:
  adapter: mysql2
  encoding: utf8
  reconnect: false
  database: myproject_development
  pool: 5
  username: root
  password: root
  host: localhost
  socket: /Applications/MAMP/tmp/mysql/mysql.sock
查看更多
劳资没心,怎么记你
3楼-- · 2019-04-05 04:44
登录 后发表回答