what is the meaning of the pg_dump and pg_restore errors

断了今生、忘了曾经 提交于 2019-12-25 01:56:01

问题


While I trying to upload database to the heroku, I hav eget this errors env: pg_dump: no such file or directory and env: pg_restore no such file and directory. What is the meaning of the this errors ? How can I fix these errors to load database to the heroku ?


回答1:


Are you using the :sql dump_format instead of schema.rb?

If so, see your solution here: Error when doing rake db:migrate on Heroku




回答2:


I just encountered the same errors using pg_transfer. Turns out that the postgresql client tools weren't installed. You can install them with:

sudo apt-get install postgresql-client


来源:https://stackoverflow.com/questions/16760059/what-is-the-meaning-of-the-pg-dump-and-pg-restore-errors

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!