473,385 Members | 1,359 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,385 software developers and data experts.

database cluster for general user

1
Hi all...


please help me, I'm a newbie...
I'm using centos 5.1 on 64 bit architcture and postgresql 8.1. Actually there is alredy postgres user, but i want my general user can create their selves database cluster.
when one of the user run initdb to directory which have been created the process is running well and gave success message.
Then he run pg_ctl to my data directory (
Expand|Select|Wrap|Line Numbers
  1. pg_ctl -D data -l logfile start
) after change port number which different with default postgresql port in postgresql.conf file and he get message that the postmaster is starting.
then he run psql and get this message:
Expand|Select|Wrap|Line Numbers
  1. psql: FATAL:  database "[user_nama]" does not exist
and he try run createdb test he get these message:
Expand|Select|Wrap|Line Numbers
  1. createdb: could not connect to database postgres: FATAL:  role "[user_nama]" does not exist
am I miss some setting?

additional question:
before, I using debian and there is pg_createcluster command in the same version of postgresql. But i can't find this one on CentOS. Is there additional package for enable the cluster related command?



best regard,




teguh wahyu
Dec 20 '07 #1
1 2839
rski
700 Expert 512MB
Hi all...


please help me, I'm a newbie...
I'm using centos 5.1 on 64 bit architcture and postgresql 8.1. Actually there is alredy postgres user, but i want my general user can create their selves database cluster.
when one of the user run initdb to directory which have been created the process is running well and gave success message.
Then he run pg_ctl to my data directory (
Expand|Select|Wrap|Line Numbers
  1. pg_ctl -D data -l logfile start
) after change port number which different with default postgresql port in postgresql.conf file and he get message that the postmaster is starting.
then he run psql and get this message:
Expand|Select|Wrap|Line Numbers
  1. psql: FATAL:  database "[user_nama]" does not exist
and he try run createdb test he get these message:
Expand|Select|Wrap|Line Numbers
  1. createdb: could not connect to database postgres: FATAL:  role "[user_nama]" does not exist
am I miss some setting?

additional question:
before, I using debian and there is pg_createcluster command in the same version of postgresql. But i can't find this one on CentOS. Is there additional package for enable the cluster related command?



best regard,

teguh wahyu
create database user user_nama using command
createuser user_nama
Dec 20 '07 #2

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

Similar topics

1
by: Noelle QUEMENER | last post by:
Hi, I am working on a new project which aim is - to centralise data in an Oracle Database, - to do some calculations (based on models), - to visualize these data on diverse client PC (heavy...
68
by: rkusenet | last post by:
http://www.eweek.com/article2/0,1759,1820667,00.asp The database market grew by 10.3 percent in 2004, fueled largely by hunger for business intelligence and analytics, according to numbers...
17
by: Peter Ericsson | last post by:
Does anyone know if Microsoft plans to implement an C# (.net) API for MS Cluster like the one in C++? Or has someone else written a C# wrapper for the C++ API?
1
by: Programmer | last post by:
Well here is my problem I have a web application running in 2 web servers and I have also a cluster system. I want using the web application to write some files in the cluster discs. So I...
7
by: Luiz Guilherme Freitas de Paula | last post by:
Hi everyone, Anyone have PostgreSQL running on a cluster? I'm trying to run on a OpenMosix 2-machine cluster but the processes are not migrating. All the load is concentrating in one machine....
5
by: Campano, Troy | last post by:
Is there a way to limit the size that an individual database can take up? My understanding is that all your databases go into a file system which is your 'catalog cluster'. But all the...
1
by: bmt | last post by:
I intend to set up a large database with PostgreSQL: about 1.3 TB, very basic queries (but 1500 per second at peak charge), and most probably only a single one index. The overall application, which...
4
by: skavan | last post by:
Use Case: We have music files that describe, in their filename, attributes of the music. We do not know a general pattern that applies to all filenames -- but we do know that filenames that are...
4
by: ThunderMusic | last post by:
Hi, We have many servers setup as a cluster. When one server crashes, another one take the relay... We want to know if it's possible (I suppose it is) to make a Windows service developed with .NET...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.