Last active
August 29, 2015 14:03
-
-
Save chiehwen/77b4be6ef41619ac4876 to your computer and use it in GitHub Desktop.
database.yml is configuration file which tells rails about database, database information.
This file contains hidden or 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
# MariaDB version 10.1 | |
# Install the MySQL driver: | |
# gem install mysql2 --no-ri --no-rdoc | |
# | |
# Ensure the mysql2 gem is defined in your Gemfile. | |
# gem 'mysql2' | |
development: | |
adapter: mysql2 | |
encoding: utf8 | |
reconnect: true | |
database: db/[DB name] | |
pool: 5 | |
host: 127.0.0.1 | |
username: root | |
password: [your password] | |
socket: /tmp/mysql.sock | |
port: 3306 | |
secure_auth: false | |
test: | |
adapter: mysql2 | |
encoding: utf8 | |
reconnect: true | |
database: db/[DB name] | |
pool: 5 | |
host: 127.0.0.1 | |
username: root | |
password: [your password] | |
socket: /tmp/mysql.sock | |
port: 3306 | |
secure_auth: false | |
production: | |
adapter: mysql2 | |
encoding: utf8 | |
reconnect: true | |
database: db/[DB name] | |
pool: 5 | |
host: 127.0.0.1 | |
username: root | |
password: [your password] | |
socket: /tmp/mysql.sock | |
port: 3306 | |
secure_auth: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment