简体   繁体   English

我可以在 Rails 3 上使用 MAMP (MySQL) 或 XAMPP (MySQL) 和 Ruby 吗?

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

Can i use MAMP (MySQL) or XAMPP (MySQL) with Ruby on Rails 3?我可以在 Rails 3 上使用 MAMP (MySQL) 或 XAMPP (MySQL) 和 Ruby 吗? i installed MySQL from MYSQL.com and had so much trouble that i like to use the MAMP/XAMPP Mysql.我从 MYSQL.com 安装了 MySQL 并且遇到了很多麻烦,我喜欢使用 MAMP/XAMPP Z9EDB3CZ67256AF518681 Is Anyone doing this?有人这样做吗? Also what configurations do i need to make to do this.我还需要做什么配置才能做到这一点。 I'm new to RoR.我是 RoR 的新手。

Thank you in advance;-)先感谢您;-)

Yes, I use it, this is my config in database.yml是的,我使用它,这是我在 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我不确定这是否是唯一要更改的内容,您可能必须从 MySQL 的源代码中复制 MySQL header 文件并将其放入 MAMP 目录

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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