`
wbj0110
  • 浏览: 1609868 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

database.yml.example

    博客分类:
  • Ruby
阅读更多

 

database.yml.example mysql2
 
123456789101112131415161718192021222324252627282930313233343536373839
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MySQL driver:
# gem install mysql2
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: test-mysql2_development
pool: 5
username: root
password:
socket: /tmp/mysql.sock
 
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: mysql2
encoding: utf8
reconnect: false
database: test-mysql2_test
pool: 5
username: root
password:
socket: /tmp/mysql.sock
 
production:
adapter: mysql2
encoding: utf8
reconnect: false
database: test-mysql2_production
pool: 5
username: root
password:
socket: /tmp/mysql.sock
database.yml.example postresql
 
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
# PostgreSQL. Versions 7.4 and 8.x are supported.
#
# Install the pg driver:
# gem install pg
# On Mac OS X with macports:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
development:
adapter: postgresql
encoding: unicode
database: test-postgres_development
pool: 5
username: test-postgres (or your username if PostgreSQL installed by Homebrew)
password:
 
# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn't need configuration. Windows does not have
# domain sockets, so uncomment these lines.
#host: localhost
#port: 5432
 
# Schema search path. The server defaults to $user,public
#schema_search_path: myapp,sharedapp,public
 
# Minimum log levels, in increasing order:
# debug5, debug4, debug3, debug2, debug1,
# log, notice, warning, error, fatal, and panic
# The server defaults to notice.
#min_messages: warning
 
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: postgresql
encoding: unicode
database: test-postgres_test
pool: 5
username: test-postgres (or your username if PostgreSQL installed by Homebrew)
password:
 
production:
adapter: postgresql
encoding: unicode
database: test-postgres_production
pool: 5
username: test-postgres
password:
database.yml.example sqlite3
 
12345678910111213141516171819202122
# SQLite version 3.x
# gem install sqlite3
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
 
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
 
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000

come from 

https://gist.github.com/erichurst/961978

 

http://rubyinrails.com/2014/01/database-yml-rails/

 

分享到:
评论

相关推荐

    Spring Boot技术知识点:如何获取application.yml配置文件里的相关属性(方法2)

    现在,Spring会自动将`application.yml`中的`database`部分注入到`DatabaseProperties`实例中。我们可以在任何需要的地方注入这个类,然后直接使用其字段: ```java import org.springframework.beans.factory....

    LINUX下的REDMINE搭建[归纳].pdf

    3. 在`config`目录下复制`database.yml.example`为`database.yml`。 4. 编辑`database.yml`,配置数据库连接参数,包括适配器、数据库名、主机、用户名、密码以及socket路径。 在某些情况下,如果MySQL的socket路径...

    ladder:阶梯锦标赛排名网站

    梯子 阶梯锦标赛排名网站。... 从示例文件config/database.yml.example创建config/database.yml config/database.yml.example 。 设置数据库。 不要从头开始运行迁移,否则将失败。 bundle exec rake db:se

    centos部署redmine4.1及远程启动脚本

    cp database.yml.example database.yml vi database.yml ``` 使用 MySQL 数据库配置,设置如下内容,注意替换 `my_password` 为您的密码: ``` production: adapter: mysql2 database: redmine host: localhost ...

    linux下的redmine搭建.pdf

    4. 配置 Redmine 的数据库连接:cp database.yml.example database.yml 修改 database.yml 文件,设置生产环境的数据库连接: production: adapter: mysql database: redmine host: localhost username: ...

    redmine2.6部署手册+程序下载(经过多次测试绝对OK)

    - 配置数据库连接:在`config`目录下复制`database.yml.example`,重命名为`database.yml`,然后根据实际情况修改数据库连接信息。 - 配置邮箱服务:同样在`config`目录下,复制`configuration.yml.example`,命名...

    National_ART_EMR_System:国家OPD

    入门: 从github克隆您的应用程序后: 将config / database.yml.example复制到config / database.yml 将config / application.yml.example复制到config / application.yml 在config / database.yml中设置数据库详细...

    linkdump:简单的链接转储Sinatra应用程序(JSON API +基本Web视图)

    链接转储 简单的链接转储Sinatra应用程序(JSON API +基本Web视图) ...开发入门 rvm install . ...cp config/database.yml.example config/database.yml APP_DIR=$PWD CONSOLE_LOG=1 bundle exec puma

    redmine安装脚本 2.6.10版本

    sed -n '5,/^$/p' $redmine_dir'config/database.yml.example' | sed -e 's/""/"redmine"/g' -e 's/root/redmine/g' >> $redmine_dir'config/database.yml' ``` 4. **安装 Gem 依赖**: - 使用 Bundler 安装 Gem...

    timetracking:用于教授 Rails 的 TimeTracking 工具

    设置将config/database.yml.example文件复制到config/database.yml : $ cp config/database.yml.example config/database.yml现在编辑您的config/database.yml使其符合您的开发机器要求,因此添加您的数据库用户名...

    penta_ruby:它是 5xruby.tw 的主要仓库

    $ cp config/database.yml.example config/database.yml $ rake db:setup dev:fake $ rails server 任务 rake dev:fake[model_name,count] dev:fake 为所有模型生成假数据,dev:fake[course,3] 创建 3 个假课程...

    irails:Droid Labs的基于Rails 4的项目的简单模板

    欢迎使用iRails 基于Rails 4的项目的简单模板入门$ git clone git://github.com/droidlabs/irails.git myapp $ cd ./myapp $ cp config/database.yml.example config/database.yml 配置您的config / database.yml $ ...

    city_dict_api:Yandex 开放数据 Hackaton 项目 - 城市命名实体词典

    将 config/database.yml.example 重命名为 config/database.yml 并从 Postgresql 添加到 database.yml 用户名和密码 捆绑安装 耙 db:create && 耙 db:migrate 导轨服务器 享受! 执照 在 MIT 下,请参阅许可证

    Droidcon-Poland:Droidcon波兰会议网站

    Droidcon波兰 会议网站 主分支 生产部门 ...$ cp config/database.yml.example config/database.yml # Update your username and password for MySQL in config/database.yml file # install gems $ bun

    work.design:工作设计开源版本全功能和模块化工作管理应用程序

    准备安装依赖bundle install yarn install检查配置文件cp config/credentials/development.yml.enc.example config/credentials/development.yml.enc数据库准备cp config/database.yml.example config/database.yml ...

    evans:FMI一堆课程的网站

    步骤如下: 克隆存储库运行bundle install 创建一个config/database.yml基础上config/database.yml.example 创建一个config/site.yml基于config/site.yml.example 使用rake db:create:all db:migrate设置数据库利润...

    Redmine使用手册.doc

    3. 复制config/database.yml.example到config/database.yml,并在此文件中配置"production"环境下的数据库连接参数。 4. 在程序的根目录下运行命令创建数据库结构:rake db:migrate RAILS_ENV="production" 5. 运行...

    settlers:卡坦岛的定居者

    cp config/database.yml.example config/database.yml 编辑 config/database.yml 以连接到您的数据库 捆绑安装 耙数据库:创建 耙数据库:迁移 耙分贝:种子 cd public/deps; 安装 导轨 笛卡尔坐标系统,因此每个...

    cryptofresh:网上商店接受BitUSD和BitGOLD付款。 http

    config / database.yml.example config / unicorn.yml.example config / store.yml.example cashier_acct: cashier rpc_port: 9999 rpc_user: user rpc_pass: pass admin_user: # login for store manager ...

    dispatch-monitor

    将config/database.yml.example复制到config/database.yml并更新它以匹配您的数据库。 将.env.example复制到.env 。 将添加以下键,根据需要更新它们: FLUID_SURVEYS_HOST=charitywater.fluidsurveys.com:443 ...

Global site tag (gtag.js) - Google Analytics