Article directory
1 question
- Windows local postgres needs to import production data for testing
2 steps
-
Enter the bin of the installation directory, usually
C:\Program Files\PostgreSQL\13\bin
-
Enter cmd (directly enter cmd in the path window of the folder and press enter)
-
Excuting an order
psql -d database name -h localhost -p 5432 -U postgres -f C:\Users\filename.sql
3 export
-
Enter the postgres bin directory, also git bash here to open the command interface
-
To execute the pg_dump command, use ./
./pg_dump --host localhost --port 5432 --username postgres -f c://dev.sql earp-authoring