数据库 19wu 运行 rake setup 出错!

jeremy16601 · July 05, 2013 · Last by jeremy16601 replied at July 05, 2013 · 2953 hits

tekiMacBook-Air:19wu-master llx$ rake setup

  1. Copy config file... using pg dabase adapter. copying :/Users/Downloads/19wu-master/config/database.yml.example.pg => /Users/Downloads/19wu-master/config/database.yml copying :/Users/Downloads/19wu-master/config/settings.yml.example => /Users/Downloads/19wu-master/config/settings.yml

  2. Create database and table... FATAL: role "postgres" does not exist /Users/.rvm/gems/ruby-2.0.0-p195/gems/activerecord-3.2.13/lib/active_record/connection_adapters/postgresql_adapter.rb:1216:in `initialize'

额,求大神帮忙看看。。

PostgreSQL 的 role 不对,如果是 Mac 系统,默认的 role 是你的系统用户名,去改配置文件。

#1 楼 @nightire 哦哦,我试试,谢谢啦

You need to Sign in before reply, if you don't have an account, please Sign up first.