Backup & Restore PostgreSQL database and setup localhost environment with laravel in windows 7
问题 1) open C:\Program Files\PostgreSQL\12\data\pg_hba.conf change: host all all ::1/128 md5 to host all all ::1/128 trust 2)open pgAdmin & create a localhost server with username postgres and password will empty /* For taking a backup or restore a dump of existing database name */ open cmd line and go to C:\Program Files\PostgreSQL\12\bin and press enter and type below command as required Take Backup : pg_dump.exe -U postgres -d dbname -f D:\Backup\ or direct take backup using pgAdmin backup