Postgres migration local to remote, issue with terminal commandExport remote Postgres table to CSV file on...

Maybe pigeonhole problem?

What does an unprocessed RAW file look like?

Equivalent of "illegal" for violating civil law

What species should be used for storage of human minds?

Are all power cords made equal?

Why is Shelob considered evil?

Identical projects by students at two different colleges: still plagiarism?

Can you say "leftside right"?

Where does documentation like business and software requirement spec docs fit in an agile project?

How bad is a Computer Science course that doesn't teach Design Patterns?

Given a total recursive function, can you always compute its fixed-point?

Why does this relation fail symmetry and transitivity properties?

Critique vs nitpicking

Sensor logger for Raspberry Pi in a stratospheric probe

Isn't a semicolon (';') needed after a function declaration in C++?

Can I travel from country A to country B to country C without going back to country A?

'DataFrame' object has no attribute 'to_dataframe'

Specific list manipulation

How can I handle players killing my NPC outside of combat?

Did ancient Germans take pride in leaving the land untouched?

How to not let the Identify spell spoil everything?

Trying to detect if any checked values contains a specific string

Stuck to wireframe

Rigorous justification for non-relativistic QM perturbation theory assumptions?



Postgres migration local to remote, issue with terminal command


Export remote Postgres table to CSV file on local machineAuthentification failure for PostgreSQL server (9.3)Restore postgres in command line on ubuntu failedpg_restore: [archiver (db)] could not execute query: ERROR: schema “public” already existsI Need Help Setting Up Roles and Passwords in PostgreSQLCan I grant privileges to a Postgres user on all schemas belonging to a database with one command or script?Working of postgres remote connectionpg_ctl won't start postgrespostgres migration sequence issueTable migration to a different remote













0















I'm trying to use the first answer here to transfer a local postgre db to elephantSQL



https://stackoverflow.com/questions/1237725/copying-postgresql-database-to-another-server



The command given is: pg_dump -C -h localhost -U localuser dbname | psql -h remotehost -U remoteuser dbname



I have no chance to enter a password in the following:



owner@G700:~$ pg_dump -C -h localhost -U rep1 repdb1 | psql -h baasu.db.elephantsql.com -U bgpacbpe bgpacbpe
Password:
Password for user bgpacbpe: pg_dump: [archiver (db)] connection to database "repdb1" failed: fe_sendauth: no password supplied


How can I resolve this?



If there is a less error prone way to do this I would also like to try that.



owner@G700:~$ psql --version
psql (PostgreSQL) 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1)









share|improve this question



























    0















    I'm trying to use the first answer here to transfer a local postgre db to elephantSQL



    https://stackoverflow.com/questions/1237725/copying-postgresql-database-to-another-server



    The command given is: pg_dump -C -h localhost -U localuser dbname | psql -h remotehost -U remoteuser dbname



    I have no chance to enter a password in the following:



    owner@G700:~$ pg_dump -C -h localhost -U rep1 repdb1 | psql -h baasu.db.elephantsql.com -U bgpacbpe bgpacbpe
    Password:
    Password for user bgpacbpe: pg_dump: [archiver (db)] connection to database "repdb1" failed: fe_sendauth: no password supplied


    How can I resolve this?



    If there is a less error prone way to do this I would also like to try that.



    owner@G700:~$ psql --version
    psql (PostgreSQL) 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1)









    share|improve this question

























      0












      0








      0








      I'm trying to use the first answer here to transfer a local postgre db to elephantSQL



      https://stackoverflow.com/questions/1237725/copying-postgresql-database-to-another-server



      The command given is: pg_dump -C -h localhost -U localuser dbname | psql -h remotehost -U remoteuser dbname



      I have no chance to enter a password in the following:



      owner@G700:~$ pg_dump -C -h localhost -U rep1 repdb1 | psql -h baasu.db.elephantsql.com -U bgpacbpe bgpacbpe
      Password:
      Password for user bgpacbpe: pg_dump: [archiver (db)] connection to database "repdb1" failed: fe_sendauth: no password supplied


      How can I resolve this?



      If there is a less error prone way to do this I would also like to try that.



      owner@G700:~$ psql --version
      psql (PostgreSQL) 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1)









      share|improve this question














      I'm trying to use the first answer here to transfer a local postgre db to elephantSQL



      https://stackoverflow.com/questions/1237725/copying-postgresql-database-to-another-server



      The command given is: pg_dump -C -h localhost -U localuser dbname | psql -h remotehost -U remoteuser dbname



      I have no chance to enter a password in the following:



      owner@G700:~$ pg_dump -C -h localhost -U rep1 repdb1 | psql -h baasu.db.elephantsql.com -U bgpacbpe bgpacbpe
      Password:
      Password for user bgpacbpe: pg_dump: [archiver (db)] connection to database "repdb1" failed: fe_sendauth: no password supplied


      How can I resolve this?



      If there is a less error prone way to do this I would also like to try that.



      owner@G700:~$ psql --version
      psql (PostgreSQL) 10.6 (Ubuntu 10.6-0ubuntu0.18.04.1)






      postgresql psql






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 10 mins ago









      Sean DezoysaSean Dezoysa

      1062




      1062






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "182"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230621%2fpostgres-migration-local-to-remote-issue-with-terminal-command%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Database Administrators Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdba.stackexchange.com%2fquestions%2f230621%2fpostgres-migration-local-to-remote-issue-with-terminal-command%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Szabolcs (Ungheria) Altri progetti | Menu di navigazione48°10′14.56″N 21°29′33.14″E /...

          Discografia di Klaus Schulze Indice Album in studio | Album dal vivo | Singoli | Antologie | Colonne...

          How to make inet_server_addr() return localhost in spite of ::1/128RETURN NEXT in Postgres FunctionConnect to...