Rails: PG::InsufficientPrivilege: ERROR: permission denied for relation schema_migrations

前端 未结 6 661
慢半拍i
慢半拍i 2021-02-07 01:48

I\'m trying to create the database in Rails. In Postgres I see the development and test database, however, I\'m getting a permissions error. I\'ve tried to follow this link, did

6条回答
  •  感情败类
    2021-02-07 02:29

    I guess you missed create password for your user. Try to create password as following:

    CREATE USER root WITH PASSWORD 'your_new_password';
    CREATE DATABASE svp-chicago_development;
    GRANT ALL PRIVILEGES ON DATABASE svp-chicago_development to root;
    ALTER DATABASE svp-chicago_development OWNER TO root;
    

提交回复
热议问题