Note: This can take time to accomplish. The installation of software can take 30+ minutes. The moving of the data will depend on how large the database is. So plan on overnight.
- Stop PostgreSQL Service using task manager
- Locate the PostgreSQL data directory and copy it
- Paste it to the new location and rename the old data directory file.
- Uninstall PostgreSQL 18 (This will not remove the database files)
- Reinstall PostgreSQL 18
- When it asks for data directory, point it to the new location from above.
- Restart windows
Comments
0 commentsPlease sign in to leave a comment.