สอบถามค่ะ จากคำสั่งอันนี้ (windows)
//path to/PostgreSQL/bin\pg_dump.exe --host localhost --port 5432 --username "openpg" --no-password --verbose --file "C:\\path to backup folder\db_name.backup" "db_name"
ไม่ทราบว่า path ของ "path to/PostgreSQL/bin\pg_dump.exe" ดูได้จากตรงไหนคะ ในเครื่องมีโฟลเดอร์ชื่อ pgAdmin 4
- path1.png (10.75 KiB) Viewed 3183 times
- path2.png (67.66 KiB) Viewed 3183 times
- path3.png (62.69 KiB) Viewed 3183 times
ลองรันคำสั่งตามนี้
โค้ด: เลือกทั้งหมด
C:\Program Files (x86)\pgAdmin 4\v4\runtime\pg_dump.exe --host localhost --port 5432 --username "openpg" --no-password --verbose --file "C:\Users\m145\Downloads\azking_test1.dump" "azking_test1"
ขึ้นเออเรอร์แบบนี้ค่ะ
x86 : The term 'x86' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:19
+ C:\Program Files (x86)\pgAdmin 4\v4\runtime\pg_dump.exe --host localh ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (x86:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException