ruby on rails - ERROR: permission denied for relation after Heroku pg_dump and import to development database -


i pretty new heroku & postgresql. trying dump production database local development database in local machine.

i dumped (my actual info redacted):

pg_dump --host=<myhost> --port=<port> --username=<username> --password --dbname=app_production  > output.sql 

then imported local app_development database this:

psql -d app_development  -f output.sql 

but now, when start server this:

pg::insufficientprivilege: error: permission denied relation schema_migrations : select "schema_migrations".* "schema_migrations" 



use navicat see local database, , can't open of tables. each time try

error:  permission denied relation <nameofwhatevertable> 

how can reset permissions app_development database when i've dumped app_production database.

it seems db permissions have been mangled. have pgadmin iii installed? http://www.pgadmin.org/download/

pgadmin iii let reset db , user parameters. allow see going on in database(s) , tables can debug them.

it's postgresql development tool mysql workbench. free download postgresql. runs on multiple platforms. easy set up.

it handy in cases this, when you're trying track down intractable error. highly recommended tool. takes guessing out of pg work.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -