Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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? 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 ;-)

like image 686
Imran Avatar asked Apr 29 '11 18:04

Imran


1 Answers

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

like image 61
Dinatih Avatar answered Sep 22 '22 02:09

Dinatih