$schemamarkup = get_post_meta(get_the_ID(), 'schemamarkup', true); if(!empty($schemamarkup)) { echo $schemamarkup; }

Step-by-step | PostgreSQL 11 Admin Guide on CentOS Gnu/Linux

February 5, 2019 | By the+gnu+linux+evangelist.

CentOS PostgreSQL 11 Admin

Hi! This Article Resume the Start-Up Procedure Following the Installation for Getting-Started with PostgreSQL 11 CLI and GUI Administration in Fedora GNU/Linux.

And this CentOS PostgreSQL 11 Admin Guide let you make the First, Steps Easily with PostgreSQL 11 Database.

Moreover, the Procedure Described is Expressly Resumed in Few Words to Give Focus to the Essential Commands Needed to the Initial SetUp.

Finally, the post include also information on Installing PostgreSQL 11 on CentOS and PostgreSQL 11 Online Docs.

PostgreSQL 11 Admin Guide CentOS - Featured
  1. How to Install PostgreSQL 11 Server on CentOS

    Here PostgreSQL 11 CentOS Install
    How to Install PostgreSQL 11 Server on CentOS GNU/Linux
  2. First, Make Needed Directories.

    Copy
    sudo mkdir -p /home/postgres/data

    Set postgres as Owner with:

    Copy
    sudo chown -R postgres:postgres /home/postgres
  3. Set the postgres User Password

    Copy
    sudo passwd postgres

    Give a Password to the postgres User Account.
    If Got “User is Not in Sudoers file” then see: How to Enable sudo

  4. Login as the postgres User

    Copy
    su postgres

    Change to the Home Directory:

    Copy
    cd 
  5. And Setup User’s Path.

    Copy
    /necho "export PATH=$PATH:/usr/lib/postgresql/10/bin" 
    > /var/lib/postgresql/.bashrc
    

    Load the New PATH with:

    Copy
    bash
  6. Then Setup First, PostgreSQL DB Cluster.

    Copy
    initdb -D /home/postgres/data
  7. Next ReStart PostgreSQL Server.

    Copy
    service postgresql restart
  8. Create a PostgreSQL test Database.

    Copy
    createdb test
  9. Access PostgreSQL Database CLI
    First, Set the postgres Database’s Password:

    Copy
    psql template1

    And then on the template1# Prompt:

    Copy
    password postgres

    And Exit with:

    Copy
    \q

    Then to Access test Database:

    Copy
    psql test
  10. Then to Create a Table.

    Copy
    CREATE TABLE account(/nuser_id serial PRIMARY KEY,/nusername VARCHAR (50) UNIQUE NOT NULL 
    );
    
  11. Next to List Tables.

    Copy
    \dt
  12. Again Listing Databases.

    Copy
    \l 

    ‘q’ to Quit.
    For More See PostgreSQL 11 Online Documentation

  13. Finally, to Delete test Database.

    Copy
    dropdb test
  14. For PostgreSQL 11 GUI Administration Install PgAdmin 4

    Here PgAdmin4 on CentOS Install
    How to Install and Getting-Started with PgAdmin 4 on Linux CentOS