1RestoreForPostgreSQL.bat 367 B

12345678910111213141516
  1. @ECHO OFF
  2. @setlocal enableextensions
  3. @cd /d "%~dp0"
  4. SET PGPASSWORD=123456
  5. SET PGPATH=D:\developtools\PostgreSQL\16.2-1\bin\
  6. SET SVPATH=D:\
  7. SET PRJDB=kaizhou
  8. SET DBUSR=postgres
  9. SET DBDUMP=D:\cqkz_2024-04-19_1748.sql
  10. %PGPATH%psql -h 127.0.0.1 -p 5432 -U postgres -d %PRJDB% < %DBDUMP%
  11. #%PGPATH%psql -h 172.168.80.134 -p 5432 -U postgres -d %PRJDB% < %DBDUMP%
  12. pause