zoukankan      html  css  js  c++  java
  • postgres

    配置目录/var/lib/pgsql/10/data

    sudo passwd postgres

    postgresql.conf

    将 #listen_addresses = 'localhost' 前的#号去掉,然后将后面的localhost改为*,然后将 #port = 5432 前的#去掉,最后再将 #password_encryption = on

    对pg_hba.conf内容进行配置,将上面红框内的ident改为md5,然后再在最下面加入 host all all 0.0.0.0/0 md5

    create database testdb;
    create user user1 createdb login password '123456';

    grant all on database testdb to user1

    c  切换数据库
    d  列出当前库下所有的表

  • 相关阅读:
    UVa10779
    UVa10779
    C++ 内存管理学习笔记
    c++ 学习笔记
    AcWing 275 传纸条
    I
    Tree HDU6228
    Lpl and Energy-saving Lamps
    C
    Secret Poems
  • 原文地址:https://www.cnblogs.com/anjunact/p/7940306.html
Copyright © 2011-2022 走看看