简体   繁体   English

我可以通过命令提示符或运行任何批处理或注册表文件来安装postgresql8.2吗?

[英]Can I install postgresql8.2 via command prompt or running any batch or registry file?

Is it possible to install the entire database(postgresql8.2) via command prompt or batch file or registry file bypassing the trivial procedure for installation. 是否可以通过命令提示符或批处理文件或注册表文件来安装整个数据库(postgresql8.2),而无需执行繁琐的安装过程。 But then to a question comes that, how can we supply default parameters such as name,password,language,default location of database? 但是接下来的问题是,我们如何提供默认参数,例如名称,密码,语言,数据库的默认位置? Currently I'm working on 'Windows XP' platform. 目前,我正在使用“ Windows XP”平台。

Thank you. 谢谢。

For 8.3 and lower the obvious answer is: http://pginstaller.projects.pgfoundry.org/ which supports or supported silent installations. 对于8.3及更低版本,显而易见的答案是: http : //pginstaller.projects.pgfoundry.org/ ,它支持或支持静默安装。 For more recent versions, please read: http://forums.enterprisedb.com/posts/list/2135.page 有关最新版本,请阅读: http : //forums.enterprisedb.com/posts/list/2135.page

Use of existing installers would simplify your life and be where I would start. 使用现有安装程序将简化您的生活,这是我的起点。

This being said there is no reason you can't generate a script to register dll's properly run initdb, etc. This will take some extra knowledge of both PostgreSQL and Windows, and will be mostly suitable for custom solutions (ie not cases where you merely are packaging software that runs with PostgreSQL). 这就是说没有理由不能生成脚本来注册dll的正确运行initdb等。这将需要PostgreSQL和Windows的一些额外知识,并且将最适合于自定义解决方案(即,不适合仅使用自定义解决方案的情况)是与PostgreSQL一起运行的打包软件)。 I don't think an complete answer can be given here because once you need such a solution you need to design your installation around if. 我认为此处无法提供完整的答案,因为一旦您需要这样的解决方案,就需要围绕if设计安装。 Books could be written on that topic. 可以写有关该主题的书。 The docs http://www.postgresql.org/docs/9.0/static/install-windows.html should get you started however since the only difference really between installing from source and installing from the precompiled source is just that you need to compile the source files first. 文档http://www.postgresql.org/docs/9.0/static/install-windows.html应该可以帮助您入门,但是因为从源安装和从预编译源安装之间的真正区别仅在于您需要编译首先是源文件。

Failing that you could take a look at the binary zip packages. 否则,您可以看看二进制zip软件包。 Typically these can be extracted and PostgreSQL can be run from inside them. 通常,可以提取这些文件,并可以从其中运行PostgreSQL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM