Navigation

    MemFireDB论坛

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    如何下载linux客户端(psql)

    MemFireDB新手区
    1
    1
    390
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      starry last edited by starry

      MemFire兼容PostgreSQL11,所以常用的用来管理数据库的工具,也可以用来管理MemFire,psql是postgresql原生的客户端命令行工具,在linux环境下简单易用。下面介绍如何安装:

      安装yum源

      rpm -Uvh https://yum.postgresql.org/11/redhat/rhel-7-x86_64/postgresql11-libs-11.14-1PGDG.rhel7.x86_64.rpm
      rpm -Uvh https://yum.postgresql.org/11/redhat/rhel-7-x86_64/postgresql11-11.14-1PGDG.rhel7.x86_64.rpm
      

      安装psql客户端

      yum -y install postgresql11
      

      测试连接

      psql -h $PG_HOST -p $PG_PORT -U $PG_USER -d $DB_NAME
      Password for user wms: # enter the password
      
      1 Reply Last reply Reply Quote 1
      • First post
        Last post