zoukankan      html  css  js  c++  java
  • PG

    PostgreSQL Windows 安装

    • 准备好安装包postgresql-11.5-1-windows-x64-binaries.zip
    • 默认情况下,会将当前的 Windows 用户作为管理员,例如“Chris”
    • 注意在初始化连接之后,在防火墙中开放5432端口。

    安装

    解压到E盘根目录中

    E:>bininitdb.exe -D data -E UTF8
    The files belonging to this database system will be owned by user "Chris".
    This user must also own the server process.

    The database cluster will be initialized with locale "English_United States.1252".
    The default text search configuration will be set to "english".

    Data page checksums are disabled.

    fixing permissions on existing directory data ... ok
    creating subdirectories ... ok
    selecting default max_connections ... 100
    selecting default shared_buffers ... 128MB
    selecting default timezone ... Asia/Hong_Kong
    selecting dynamic shared memory implementation ... windows
    creating configuration files ... ok
    running bootstrap script ... ok
    performing post-bootstrap initialization ... ok
    syncing data to disk ... ok

    WARNING: enabling "trust" authentication for local connections
    You can change this by editing pg_hba.conf or using the option -A, or
    --auth-local and --auth-host, the next time you run initdb.

    Success. You can now start the database server using:

    binpg_ctl -D data -l logfile.txt start

    E:>binpsql postgres

  • 相关阅读:
    php method_exists( $object , string $method_name )
    php伪类型 (mixed)
    6.6-2-数组与数据结构(用数组及其函数实现堆栈等数据结构)
    6.6-1-php数组相关(2)
    2017.6.5-2-php数组相关(1)
    2017.6.5-1-php函数应用及流程控制
    CodePage
    bat批处理教程
    pip安装及源
    CentOS安装Python3
  • 原文地址:https://www.cnblogs.com/duchaoqun/p/12874336.html
Copyright © 2011-2022 走看看