windows pgsql 数据库迁移

1.停止postgresql服务

cmd 命令

services.msc

找到 postgres 服务停止

2.拷贝数据库文件

将数据库文件拷贝到要迁移的目录下

3.修改注册表

运行cmd,输入regedit打开注册表,修改 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\postgresql-x64-9.1
\ImagePath

postgresql-x64-9.1 查看版本号

4.启动服务

猜你喜欢

转载自blog.csdn.net/qq_33253054/article/details/131413108