Hello, I try to use postgresql with Ruby on Rails. First I see this error ; role "roelof" does not exist. I solved it by doing : sudo -u postgres createuser roelof but now when I make the database by doing rake db:create I see this error ; PG::InsufficientPrivilege: ERROR: permission denied to create database How to solve this one? Roelof
On 7/11/2014 11:37 PM, Roelof Wobben wrote: > First I see this error ; role "roelof" does not exist. > > I solved it by doing : sudo -u postgres createuser roelof > > but now when I make the database by doing rake db:create I see this > error ; > > PG::InsufficientPrivilege: ERROR: permission denied to create database > > How to solve this one? sudo -u postgres psql -c "alter role roelof with createdb createuser" -- john r pierce 37N 122W somewhere on the middle of the left coast
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера