Ruby On Rails in MAMP mySQL Snow Leopard

后端 未结 2 814
野性不改
野性不改 2021-02-20 07:37

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 a

相关标签:
2条回答
  • 2021-02-20 08:09

    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
    
    0 讨论(0)
  • 2021-02-20 08:17

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

    0 讨论(0)
提交回复
热议问题