• Home
  • Services
    • DBA Support
    • DBA Consultancy Services
    • PostgreSQL Support
    • Website Maintenance
  • Courses

    About Courses

    • List Of Courses
    • Become an Instructor
    Greenplum Database

    Greenplum Database

    $2,000.00 $1,500.00
    Read More
  • Company
    • FAQs
    • About Us
    • Contact
  • Events
  • Portfolio
  • Blogs
    • Blog – RayaFeeL
    • Blog – PostgreSQL Support
    • Blog – PostgreSQL Migration
    • Blog – MySQL
    • Blog – Linux
  • Forums
      • Cart

        0

    Have any question?
    (+91) 8838953252
    support@2ndquadrant.in
    RegisterLogin
    RayaFeeLRayaFeeL
    • Home
    • Services
      • DBA Support
      • DBA Consultancy Services
      • PostgreSQL Support
      • Website Maintenance
    • Courses

      About Courses

      • List Of Courses
      • Become an Instructor
      Greenplum Database

      Greenplum Database

      $2,000.00 $1,500.00
      Read More
    • Company
      • FAQs
      • About Us
      • Contact
    • Events
    • Portfolio
    • Blogs
      • Blog – RayaFeeL
      • Blog – PostgreSQL Support
      • Blog – PostgreSQL Migration
      • Blog – MySQL
      • Blog – Linux
    • Forums
        • Cart

          0

      Blog

      • Home
      • Blog
      • Blog
      • How to connect the postgresql database automatically without password prompt ?

      How to connect the postgresql database automatically without password prompt ?

      • Posted by admin
      • Categories Blog
      • Date November 2, 2018
      • Comments 0 comment

      Following simple Two steps you can connect the postgresql database automatically without any password prompt

      Step 1. create the bash_profile:

      [root@2ndquadrant.in]# cat .bash_profile
      export PGPASSWORD="tcs@12345"
      export PGHOST="10.0.1.109"
      export PGUSER="enterprisedb"
      export PGPORT="5444"
      /opt/edb/as9.6/bin/psql -d edb

      Step 2. Run the bash_profile by using sh or . you will see the following postgres sql prompt

      [root@2ndquadrant.in]# sh .bash_profile
      psql.bin (9.6.2.7)
      Type "help" for help.
      
      edb=# \dt
                  List of relations
       Schema |  Name   | Type  |    Owner
      --------+---------+-------+--------------
       public | dept    | table | enterprisedb
       public | emp     | table | enterprisedb
       public | jobhist | table | enterprisedb
       public | test    | table | enterprisedb
      (4 rows)

      • Share:
      admin

      Previous post

      PostgreSQL PG_SHADOW
      November 2, 2018

      Next post

      postgreSQL cascaded replication - POA Document
      November 10, 2018

      Leave A Reply Cancel reply

      You must be logged in to post a comment.

      Login with:

      Login with Google Login with Twitter Login with LinkedIn Login with Microsoft

      Search

      ADVERTISEMENT

      Latest Posts

      PostgreSQL Patching version 9, 10,11
      10Oct2019
      Tools for PostgreSQL
      16Sep2019
      Postgres user creation and restrict DDL & database access
      13Sep2019
      PostgreSQL SSL Setup
      07Sep2019
      How to DELETE current XLOG / WAL LOG in postgresql database ?
      19Aug2019

      Latest Courses

      PostgreSQL Database

      PostgreSQL Database

      $600.00 $250.00
      Greenplum Database

      Greenplum Database

      $2,000.00 $1,500.00

      Recent Forum Topics

      • please let me know pre requirements to increase work_mem
      • how to copy some data in one table to another table in postgres
      • postgres script for finding queries more than 1 hours ?
      • How to take the tables backup in postgres
      • what are the extensions required to be in instance for performance

      2ndquadrant.in

      (+91) 8838953252

      contact@2ndquadrant.in

      Company

      • About Us
      • Contact
      • Our Team
      • Blog

      COURSES

      • List Of Course
      • Become An Instructor
      • Events
      • Postgres Support Blog

      Support

      • DBA Support
      • Consultancy Services
      • Forums
      • Postgres Migration Blogs

      Recommend

      • Groups
      • Login
      • FAQs
      • SignUp

      IT Services by rayafeel.com. Powered by Rayafeel Technologies Pvt Ltd.

      • Privacy
      • Terms

      Become An Instructor?

      Join thousand of instructors and earn money hassle free!

      Get Started Now

      Login with:

      Login with Google Login with Twitter Login with LinkedIn Login with Microsoft

      Login with your site account

      Lost your password?

      Not a member yet? Register now

      Register a new account

      Are you a member? Login now