Postgres error “invalid value for parameter ”TimeZone“: ”UTC“”

前端 未结 15 1023
甜味超标
甜味超标 2021-02-01 00:26
Jupitor$ bundle exec rake db:create db:migrate
APP_development already exists
rake aborted!
PG::Error: ERROR:  invalid value for parameter \"TimeZone\": \"UTC\"
: SET ti         


        
15条回答
  •  滥情空心
    2021-02-01 00:34

    If nothing else fixes and you happen to be using homebrew, chances are you have issues with current links.

    Assuming you have two Postgres versions installed, make sure you unlink and then link again. In my case, I needed the two versions working in order to run pg_upgrade. I have postgresql95 and postgresql so I did:

    $ brew unlink postgresql
    $ brew unlink postgresql95
    $ brew link postgresql95
    $ brew link --overwrite postgresql 
    

    That got me both working at same time. Hope it becomes helpful as it took me a good while to figure that out!

提交回复
热议问题