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

jeremy16601 · 2013年07月05日 · 最后由 jeremy16601 回复于 2013年07月05日 · 2953 次阅读

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 哦哦,我试试,谢谢啦

需要 登录 后方可回复, 如果你还没有账号请 注册新账号