how to run postgresql on debian terminal

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manjuscripts
    New Member
    • Aug 2007
    • 6

    how to run postgresql on debian terminal

    I installed postgresql on debian and i want to run it on the terminal.some body can do me that favour
  • rski
    Recognized Expert Contributor
    • Dec 2006
    • 700

    #2
    To start server you can use command
    Code:
    pg_ctl start
    To connect to database you can use psql client
    Code:
    psql database_name

    Comment

    • pgadmin
      New Member
      • Mar 2008
      • 2

      #3
      follow this procedure
      1. open root terminal
      2. type=> su - postgres
      3.psql -l (it show default database)
      4. If you want craete new database type=> createdb mydb
      5. After that enter your database by usesing=> psql mydb
      6.use SQL queries
      7. use \q to quite your database
      8. type exit to close postgresql database

      Comment

      • pgadmin
        New Member
        • Mar 2008
        • 2

        #4
        follow this procedure
        1. open root terminal
        2. type=> su - postgres
        3.psql -l (it show default database)
        4. If you want craete new database type=> createdb mydb
        5. After that enter your database by usesing=> psql mydb
        6.use SQL queries
        7. use \q to quite your database
        8. type exit to close postgresql database

        Comment

        • Pramod Gautam
          New Member
          • Mar 2008
          • 4

          #5
          Hi, I am using Debian etch with postgresql database. I used this procedure for start postgre database on my terminal
          follow this procedure
          1. open root terminal
          2. type=> su - postgres
          3.psql -l (it show default database)
          4. If you want craete new database type=> createdb mydb
          5. After that enter your database by usesing=> psql mydb
          6.use SQL queries
          7. use \q to quite your database
          8. type exit to close postgresql database

          Comment

          Working...