简体   繁体   中英

Ruby On Rails in MAMP mySQL Snow Leopard

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

I can suggest this tutorial for you; Using Ruby MySQL Gem with MAMP 1.8.x on Snow Leopard

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM