Posted at

RailsでMAMPのMySQLに接続したい

More than 3 years have passed since last update.


database.yml

adapter: mysql2

encoding: utf8
database: sample_development
pool: 5
port: '8889'
username: 'root'
password: 'root'
host: '127.0.0.1'
socket: '/Applications/MAMP/tmp/mysql/mysql.sock'