在windows下安装PostgreSQL的几点注意事项
安装完PostgreSQL后,要对它进行配置:
PostgreSQL的3个配置文件:
C:\Program Files\PostgreSQL\8.3\data\pg_hba.conf
C:\Program Files\PostgreSQL\8.3\data\pg_ident.confC:\Program Files\PostgreSQL\8.3\data\postgresql.conf
编辑完它们后记得重新启动PostgreSQL服务,以便使设置生效。
1、如果本机有多个IP地址,在postgresql.conf中设置:
listen_addresses = '*'
或者制定某一个具体IP。
2、在 pg_hba.conf指定可以访问PostgreSQL的机器或网段。
3、新建登陆角色,以便登陆。
4、新建数据库或数据表时,注意付给相应角色权限。
PostgreSQL相关网站:
http://postgresql-chinese.blogspot.com/