Tôi mới cho psql. Tôi nhận được từ tệp data.dump máy chủ của mình. Tôi cần phải khôi phục nó ở địa phương của tôi. Tôi đã thử các lệnh này.postgresql- khôi phục tệp .dump
i) postgres psql -U dbname servicedb.dump -f
Error:
psql: warning: extra command-line argument "-f" ignored
psql: warning: extra command-line argument "servicedb.dump" ignored
ii) psql -U postgres dbname < servicedb.dump
Error:
^
ERROR: syntaxe error at or near "☺"
LINE 1: ☺☺
là gì này ".dump" tập tin và làm thế nào để khôi phục lại nó?
+1 cho khuôn mặt cười :) –