Skip to content

Instantly share code, notes, and snippets.

@bretdavidson
Created March 13, 2013 17:12
Show Gist options
  • Save bretdavidson/5154179 to your computer and use it in GitHub Desktop.
Save bretdavidson/5154179 to your computer and use it in GitHub Desktop.
Example for connecting RoR to a MAMP hosted database. Socket path assumes MAMP has been installed in the default directory. DATABASE_NAME, USERNAME, and PASSWORD will need to be replaced with the appropriate values from the database in MAMP. Default username and password are both root.
development:
adapter: mysql2
database: DATABASE_NAME
username: USERNAME
password: PASSWORD
socket: /Applications/MAMP/tmp/mysql/mysql.sock
host: localhost
pool: 5
timeout: 5000
encoding: utf8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment