zoukankan      html  css  js  c++  java
  • PostgreSQL7.5安装

    PostgreSQL将从7.5版开始支持windows.
    http://www.hagander.net/pgsql/win32snap/
    我看这里面的安装指南:

    Setting Up the Server


    1. Unzip download into a folder of your choice (example: c:\postgres)
    2. Add the newly created bin and lib folder to your path (inside the NT environment settings).
    3. Add PGDATA environment variable to point to the folder which will contain your database (c:\postgres\data).

    4. Open a new command window and type: initdb -L "c:/postgres/share" (note the unix style slashes for compatibility reasons). If you get a bad command error, your path is not set up properly. If you see no error messages, the template database is constructed and the server is ready to be started.
    5. From the command window, type: postmaster. This will start the server. Leave this window open as long as you want the server to run. To shut down the server, close the window or press Control-C while the window has the focus.
    6. Open another command window and type psql template1. Success indicates the server is running and you have logged into the server. You will probably want to create a database right away. For further information on setting up and administrating PostgreSQL please check out the standard documentation.

    在 os 中 设置:
    set path=%path%;c:\postgres\data;c:\postgres\BIN;c:\postgres\LIB



  • 相关阅读:
    jq绑定on事件无效
    数字以0补全
    redis常用操作
    mysql数据操作日常
    centos端口映射
    centos7防火墙操作
    mysql5.7order by问题
    centos无法上网解决方法
    面试题
    ztree 获取子节点所有父节点的name的拼接
  • 原文地址:https://www.cnblogs.com/huqingyu/p/25262.html
Copyright © 2011-2022 走看看