Installing Postgresql on ubuntu (linux)
There are two methods for installing postgresql:
1.using cmd
2.using snaptic package manager
Using cmd:
Run the command:
$ sudo apt-get install postgresql postgresql-client postgresql-contrib
prompt for password of the user ubuntu user, fetch data from the internet directories. Then run the following command?
$ sudo apt-get install pgadmin3
Using Synaptic Package Manager
Open spm and mark postgresql for installation. Following will be marked as dependencies
1.libpq5
2.postgresql-8.3
3.postgresql-client-8.3
4.postgresql-client-common
5.postgresql-common
Then mark pgadmin3 for installation. Following dependencies will also be marked
1.libwxbase2.8-0
2.libwxgtk2.8-0
3.pgadmin3-data
Reset the password for the ‘postgres’ admin account for the server, so we can use this for all of the system administration tasks. Type the following at the command-line (substitute in the password you want to use for your administrator account):
$ sudo su postgres -c psql template1
Welcome to psql 8.3.8, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help with psql commands
\g or terminate with semicolon to execute query
\q to quit
postgres=# ALTER USER postgres WITH PASSWORD 'test123';
ALTER ROLE
postgres-# \q
Then go to Applications ->System Tools-> pgAdmin III
add server with user postgres at local host.
Change the password of UNIX user:
openerp@openerp-server:~$ sudo passwd -d openerp
Password changed.
openerp@openerp-server:~$ sudo su openerp -c passwd
Enter new UNIX password: *****
Retype new UNIX password: *****
passwd: password updated successfully
Wednesday, February 10, 2010
Subscribe to:
Posts (Atom)