无法使用wix工具创建postgresql数据库

2024-03-29 12:43:32 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用Wix工具集在PostgreSQL中创建一个数据库,但当我试图创建数据库时,总是会出现错误“error-2147467259:failed to create SQL database:pontow,error detail:unknown error.”当我试图创建一个数据库或出现错误“failed to connect to SQL database”。(-2147467259 pontow)”当我简单地尝试对现有数据库执行a时。我做了一些研究,似乎是访问被拒绝了,但不能让它工作。在

我已经试过了:

  • 改变'postgresql.conf'并设置'listen_address='*''
  • 更改页面_hba.conf'并添加一行'host all all 0.0.0.0/0 trust'
  • PostgreSQL v9.6和v11.2
  • 给予“所有人”对PosgreSQL文件夹和子文件夹的完全权限
  • 使用Wix'sql:sql数据库'SQL身份验证和Windows身份验证

我使用的是Windows10x64,Wix工具集v3.11。在

我的产品.wsx文件:

    <Binary Id="CreateTable" SourceFile=".\CreateTable.sql"/>
    <Property Id="SQLUSERNAME" Secure="yes">postgres</Property>
    <Property Id="SQLPASSWORD" Secure="yes">test</Property>
    <Property Id="SQLSERVER" Secure="yes">localhost</Property>
    <Property Id="SQLSERVERPORT" Secure="yes">5432</Property>
    <Property Id="DATABASE_NAME" Secure="yes">pontow</Property>

    <util:User Id="SQLUser" Name="[SQLUSERNAME]" Password="[SQLPASSWORD]" />
^{pr2}$

我希望使用Wix工具集或任何建议创建一个PosgreSQL数据库安装程序.exe谢谢。在


Tags: toid数据库sqlpostgresql错误errorproperty