Firefox 16, a treat for developers http://t.co/cnd27CzT
postgresql-server in opoensuse 11.x
PostgreSQL is an object-relational database management system (ORDBMS). It is released under a BSD-style license and is thus free software. As with many other open-source programs, PostgreSQL is not controlled by any single company, but has a global community of developers and companies to develop it.
Install postgresql-server in opoensuse 11.x
download and install the package:
Unixmen-net:/etc/init.d # zypper install postgresql-server
Retrieving repository ‘openSUSE-11.1-Update’ metadata [done]
Building repository ‘openSUSE-11.1-Update’ cache [done]
Loading repository data…
Reading installed packages…
Resolving package dependencies…
The following NEW packages are going to be installed:
postgresql postgresql-server
Overall download size: 4.0 M. After the operation, additional 16.6 M will be used.
Continue? [YES/no]: Y
the installation directory is this : /usr/share/postgresql/
Data and Runtimes file s in : /var/lib/pgsql/
Config files : /var/lib/pgsql/data
For example : pg_hba.conf and postgresql.conf
Now we have to start the server with :
Unixmen-net:/etc/init.d # rcpostgresql start
Initializing the PostgreSQL database at location /var/lib/pgsql/data
done
Starting PostgreSQL done
now we have to add user and password
Unixmen-net:~ # su - postgres
postgres@Unixmen-net:~> pwd
/var/lib/pgsql
postgres@Unixmen-net:~> psql postgres
Welcome to psql 8.3.7, 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
Dont forget to edit /var/lib/pgsql/data/pg_hba.conf if you get this error :
Error!
“IDENT authentication failed for user”
and change from
localte all all ident sameuser
host all all 127.0.0.1/32 ident sameuser
host all all ::1/128 ident sameuser
to
local all all trsut
host all all 127.0.0.1/32 trust
host all all ::1/128 trust
To create users :
#su postgres
Unixmen-net:~ # su postgres
postgres@Unixmen-net:/root> createuser -D unixmen
could not change directory to “/root”
Shall the new role be a superuser? (y/n) y
create user with password . createuser -D -p user
Now to delete a user :
#dropeuser user
Like us on Facebook
This week Top Posts 
Top Things to do After Installing Ubuntu 13.04 ‘Raring Ringtail’ : Ubuntu 13.04 Raring Ringtail final is almost out. The final release it scheduled for release on Apri...0 comment(s) |
Install lamp with 1 command in Ubuntu 12.10, 13.04 Raring Ringtail & LinuxMint13 : Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web development platform ...1 comment(s) |
Howto: Upgrade to Ubuntu 13.04 Raring Ringtail from 12.04, 12,10 | Desktop & Server : Updated 05-04-2013: Ubuntu 13.04 Raring Ringtail will be released Soon, If you have ubuntu 12,10, 12...0 comment(s) |
Howto- Resolve nosound problem on Ubuntu 13.04 Raring Ringtail,12.10 and Older : Updated 05/04/2013 : One of the common issues facing Ubuntu users after installing or upgrading Ubun...0 comment(s) |
Configure conky-Lua in Ubuntu (12.10 & 13.04 Raring Ringtail), Fedora, debian and LinuxMint | Howto Conky : Updated 05-04-2013: Conky is a free, light-weight system monitor for X, that displays any informatio...0 comment(s) |
Connect Your Android Galaxy Tablet to Ubuntu via USB : "I am having problems in connecting the Galaxy Tab to Ubuntu via USB cable."; This is a common quest...0 comment(s) |
Recent Posts
- Unix/Linux File Recognition. Did You Know?
- Migrate from MySQL to MariaDB in FreeBSD
- Connect Your Android Galaxy Tablet to Ubuntu via USB
- ElementaryOS Beta 1 and 2 Comparison and Review
- Introduction to the Linux Command Line
- A Secure Password
- Linux Kernel 3.10. It’s BIG!
- Monitoring Users Activity Using psacct or acct Tools in Linux
- Run Your Own Social Network Using elgg on RHEL / CentOS and Scientific Linux
- Getting Debian 7.0 ‘Wheezy’ Up and Running
Recent Comments



















SK
| #
Yes i will. Keep visiting. Subscribe us to get daily updates. Thanks for the comment
Rakesh Vijayan
| #
Hi SK
I am Rakesh vijayan thanks for your great work ,by your work I start to learn what is ldap , my request is will you make tutorial for ldap and samba pdc for us on ubuntu 12.04
Guest
| #
It was a typo. Now its corrected. Thanks for pointing out.
Michael T
| #
You shouldn’t be so stupid, in the first time.
PrestaShop
| #
Hi! Thank you for this nice article. We’ve 130,000+ active stores, you forgot the “1″ ;-)