关于可移植性:可移植的PostgreSQL,用于通过USB驱动器进行开发

Portable PostgreSQL for development off a usb drive

为了完成一些开发工作,我必须能够运行PostgreSQL数据库。

我不想在家里的机器上安装任何东西。 一切都应该在USB驱动器上运行。

您随身携带哪些USB开发工具?

这个问题几乎涵盖了其他所有内容,但是我还没有找到使postgresql可移植的指南。 如果可能的话,这似乎并不容易。

那么如何使PostgreSQL可移植? 可能吗?

编辑:

PostgreSQL可移植作品。 我拥有的USB驱动器的速度非常慢,但是可以正常工作。 我不建议使用它进行持续开发,但是对于我所需要的来说,它很棒。

也许如果我选择了全速外置硬盘,我会尝试虚拟化。 由于仅在该驱动器上运行数据库的性能较差,因此无法使用完全运行的虚拟OS。


您可以自行执行以下操作:
http://www.postgresonline.com/journal/archives/172-Starting-PostgreSQL-in-windows-without-install.html


另一种方法是使用VirtualBox之类的东西,然后在其中安装开发环境(数据库等)。


2014年有2个项目可以尝试:http://sourceforge.net/projects/pgsqlportable/和http://sourceforge.net/projects/postgresqlportable/?source=recommended。

我不能保证第二个,但是我正在使用第一个,它开箱即用。

使用7-zip(http://www.7-zip.org/download.html)解压缩后:

1
2
1) Run"start service without usuario.bat" ( english translation )
2) THEN run"pgadmin3.bat"

对我来说,唯一的最小问题是西班牙语。通过遵循PostgreSQL中的更改系统语言和错误消息,我已经能够将语言更改为英语。使用谷歌翻译的说明是:

Description

This is a zip to automatically run postgresql 9.1.0.1 for windows. This version already has pgagent and pldebugger. To run must: 1) unzip
the zip 2) run the"start service without usuario.bat" found in the
pgsql directory within the folder you just unzipped. 3) Optional. If
you want to run the agent works postgresql (pgagent) should only run
the"start pgagent.bat" found in the pgsql directory inside the folder
you just unzipped. 4) Optional. To manage and / or develop the bd you
can run the pgadmin3.bat 5 files) Optional. To stop and / or restart
the server correctly use file"service without stopping usuario.bat"
usuario.bat or restart service without depending on the case.

1
2
3
4
5
Now OPTION FOR Linux (file. Tar.gz). Postgresql portable Linux 9.2    

Please USE the tickets FOR your answer bugs.    

Username: postgres Password: 123

请注意:在新计算机上,要使pgadminIII工作,您可能需要添加一个数据库。设置在随附的屏幕截图中。

希望能帮助到你。

enter image description here


我同意虚拟化解决方案,但也许您可以从便携式免费软件集合中找到此链接有用,但我在本地使用了此链接,尽管不是从USB