Can i use MAMP (MySQL) or XAMPP (MySQL) with Ruby on Rails 3?

大城市里の小女人 提交于 2019-12-09 06:33:23

问题


Can i use MAMP (MySQL) or XAMPP (MySQL) with Ruby on Rails 3? i installed MySQL from MYSQL.com and had so much trouble that i like to use the MAMP/XAMPP Mysql. Is Anyone doing this? Also what configurations do i need to make to do this. I'm new to RoR.

Thank you in advance ;-)


回答1:


Yes, I use it, this is my config in database.yml

development:
  adapter: mysql2
  database: app
  username: app_user
  password: app_password
  socket: /Applications/MAMP/tmp/mysql/mysql.sock
  host: localhost
  pool: 5
  timeout: 5000
  encoding: utf8

I'm not sure if it's the only thing to changed, you maybe must to copy MySQL header files from the source of MySQL and put it in the MAMP directory



来源:https://stackoverflow.com/questions/5836094/can-i-use-mamp-mysql-or-xampp-mysql-with-ruby-on-rails-3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!