PostgreSQL 82 的安装要点.ppt
PostgreSQL的配置要点,Tianqing ZhangSchool of Computer (School of Software)zhangtqscu.edu.cn,解压postgresql-9.1.10-1-windows-binaries到目标路径(如:c:pgsql),2. 系统环境变量Path中增加c:pgsqlbin,3. 在cmd命令窗中进入目录c:pgsql,输入命令initdb -locale=C -E utf-8 -D c:/pgsql/data,Tips,如果用户名为中文可能会报编码错误!解决办法,增加一个普通用户,如postgres,以该用户的身份进入命令窗口执行上面的initdb命令。,4.登记服务。在windows管理员cmd窗中输入命令pg_ctl register -N postgres -D c:/pgsql/data,5.系统服务中出现postgres服务,6. Postgres服务启动后,即可在cmd命令窗中输入命令psql postgres进入postgreSQL客户端工具,不登记服务启动数据库,直接用pg_ctl D data start l logfile启动数据库服务器pg_ctl D data start关闭数据库服务器,