现在数据库启动不了了,每次一启动就会报错,错误号是 14001,给出了一个指导性建议,如下Server doesn't listen
The server doesn't accept connections: the connection library reports 
could not connect to server: Connection refused (0x0000274D/10061) Is the server running on host "127.0.0.1" and accepting TCP/IP connections on port 5431? 应该怎么办呢?卸了装,装了卸的,一直没搞好

解决方案 »

  1.   

    是不是已经起动了,或是别的程序占用了5432端口
    netstat看看
      

  2.   

    netstat看了,那个端口没有软件使用另外,好像没开防火墙
      

  3.   

    应该还有更详细的错误报告
    若是windows系统,看一下事件查看器的错误记录是什么?
      

  4.   

    在哪里查呢,我用的是window xp,在目录下有个log的东西,
    C:\Program Files\PostgreSQL\8.3\data\yawldatabase\pg_xlog
    应该是这个路径下么?
    有个文件的名字是 0000000000 没有后缀,用记事本打开了,什么都没有,感觉是二进制文件
      

  5.   

    安装成功了吗?data文件夹有东西吗?