Created
March 13, 2013 17:12
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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