ITPub博客

首页 > IT职业 > IT职场 > Win7无法启动PostgreSQL怎么办

Win7无法启动PostgreSQL怎么办

IT职场 作者:rebootart 时间:2021-09-11 10:19:16 0 删除 编辑

Win7无法启动PostgreSQL怎么办

PostgreSQL在2003和Win7系统注册成功后,但是无法启动数据库。

解决办法是:修改pgsqldata目录下pg_hba.conf文件。

1、win7修改如下:

# IPv4 local connections:
host    all         all         127.0.0.1/32          trust
host    all         all         ::1/128               trust
# IPv6 local connections:
#host    all         all         ::1/128               trust

2、win2003 修改如下:

# IPv4 local connections:
host    all         all         127.0.0.1/32          trust
#host    all         all         ::1/128               trust
# IPv6 local connections:
#host    all         all         ::1/128               trust

推荐学习:postgresql教程

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/2971/viewspace-2834084/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-08-13

  • 博文量
    65
  • 访问量
    355