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 with MYSQL.com and had so many problems that I like to use MAMP / XAMPP Mysql. Does anyone do this? And what configurations do I need to do to do this. I am new to RoR.

Thank you in advance, -)

+6
source share
1 answer

Yes, I use it, this is my configuration 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 this is the only thing you need to change, you may have to copy the MySQL header files from the MySQL source and put them in the MAMP directory

+10
source

Source: https://habr.com/ru/post/886978/


All Articles