473,387 Members | 1,515 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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
Mar 5 '08 #1
4 16863
rski
700 Expert 512MB
To start server you can use command
Expand|Select|Wrap|Line Numbers
  1. pg_ctl start
  2.  
To connect to database you can use psql client
Expand|Select|Wrap|Line Numbers
  1. psql database_name
  2.  
Mar 5 '08 #2
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
Mar 11 '08 #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
Mar 11 '08 #4
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
Mar 11 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: W. Borgert | last post by:
Hi, I'm not new to Python, but new to databases and PostgreSQL. I like to write a PostgreSQL client application (not code running inside of the RDBMS), and Debian has four modules: ...
74
by: John Wells | last post by:
Yes, I know you've seen the above subject before, so please be gentle with the flamethrowers. I'm preparing to enter a discussion with management at my company regarding going forward as either...
7
by: Oliver Elphick | last post by:
Debian packages of PostgreSQL 7.4beta4 are available in the experimental section of the Debian archive. -- Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight,...
7
by: Oliver Elphick | last post by:
Debian packages of 7.4 have been uploaded to Debian's experimental archive. Because of certain issues with interlocking dependencies, I will not move them to unstable until version 7.3.4-9 is...
2
by: Phil Campaigne | last post by:
Hello, I am trying to use the linux startup script in the contrib directory of the distribution. I get the following error in the server log: LOG: invalid secondary checkpoint record PANIC: ...
2
by: Vittorio | last post by:
Context: Pentium PIII, 128 MB RAM, 5400 RPM HD-10GB (of which 1.8 GB as swap disk) Debian linux testing, Postgresql 7.4.2 from the deb box. Beginner with Postgresql but not with linux At...
8
by: Kaarel | last post by:
Would PostgreSQL be a good enough choise for GnuCash (or Quickbooks or the likes) type of program? What could be the potential drawbacks of using PostgreSQL (perhaps its big size)? What would be...
2
by: Oleg | last post by:
Dear All, I have upgraded Postgresql from 7.3 to 7.4. Starting pg brings error: The database is in an older format that cannot be read by version 7.4 of PostgreSQL dpkg-upgrade postgresql...
24
by: Donn Ingle | last post by:
Hello, I hope someone can illuminate this situation for me. Here's the nutshell: 1. On start I call locale.setlocale(locale.LC_ALL,''), the getlocale. 2. If this returns "C" or anything...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.