1. login to postgres -
sudo -u postgres psql postgres
2. Create a database
create database is_db;
3. grant permission
grant all on database is_db to postgres;
in above;
postgres is the user who was created at the time PostrSQL was installed.
4. to navigate to the files system from postgres prompt.
\cd c:cc\vv\vv\v\mmmm
5. run a script
\i postgre.sql
6. quit postgres
\q
A place where I keep a note of simple but useful technical tips and memorable posts....
Showing posts with label postgreSQL. Show all posts
Showing posts with label postgreSQL. Show all posts
Monday, May 10, 2010
Subscribe to:
Posts (Atom)
-
Got to know this is how command line looping is used: while [ 1 ] do ls -al ; sleep 60 done Applying this to stress command...
-
Here are steps: Open the file you need to edit :sp /path/to/the/file/... and open the file that you need to copy from (this will split...