I am trying to copy a table from one database to another database But no response in server
Here is the command
pg_dump -U database_user_name -t categories my_current_db_name | psql new_db_name
What wrong in the above code it is not showing any response.
-U database_user_nameto the psql command as well. Also, can you post the exact error you are seeing?psql: FATAL: password authentication failed for user "root"This is the error message but I did not useroot userin the above syntaxsudo -u postgres pg_dump -U database_user_name ...