Re: pls help me(How to start Postgres)

Поиск
Список
Период
Сортировка
От sandhya
Тема Re: pls help me(How to start Postgres)
Дата
Msg-id 015401c64662$6777c680$cd00000a@sandhyar
обсуждение исходный текст
Ответы Re: pls help me(How to start Postgres)
Список pgsql-admin
Hi Fazil,,,
 
When i tried to did what u said..I faced the following problem.Please tell me how to solve this.
E:\PostgreSql>runas /user:SANDHYAR\Postgres"<path>\bin\pg_ctl.exe start -D""<pat
h>\PostgreSql\data" -l "<path>\sanur pwd
Enter password for SANDHYAR\Postgres<path>\bin\pg_ctl.exe start -D"<path>\Postgr
eSql\data -l <path>\sanur:
Attempting to start "pwd" as user "SANDHYAR\Postgres<path>\bin\pg_ctl.exe start
-D"<path>\PostgreSql\data -l <path>\sanur"...
RUNAS ERROR:  Unable to run - pwd
1326: Logon failure: unknown user name or bad password.
 
Sandhya
----- Original Message -----
Sent: Thursday, March 09, 2006 2:46 PM
Subject: Re: [ADMIN] pls help me

Hi,
 
I am not an expert in PG, still i can help u to some extend as i have successfully deployed pg8.1.1 using both installer and no installer on Win XP,2K,2003.
 
To solve your issue
1. cretae a user on your local system.
2. Use runas to run pg_ctl using the user created
Eg batch file:
@echo off
chdir c:\WINDOWS\system32
runas /user:SYSNAME\postgres "<path>\pgsql\bin\pg_ctl.exe start -D ""<path>\pgsql\data" -l ""<path>\pgsql\pg_log.txt"" | "<path>\sanur pwd
pause
 
In the above eg sanur is a utility used myself for piping the pwd into runas as it will ask externally. You can download it from http://www.commandline.co.uk/sanur_unsupported/index.html
 
Also go through the Following FAQ link f or ur further queries
 
Also u have to copy libpq.dll either in %system32% or in PG bin folder.
 
Regards
Mohamed Fazil
 
 


sandhya <sandhyar@amiindia.co.in> wrote:
 
My Postgres server is not connecting now.I am working on windows .
I am getting the following error message.

E:\PostgreSql\bin>Execution of PostgreSQL by a user with administrative permissi
ons is not
permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromises.  See the documentation for
more information on how to properly start the server.
and when i tried to start from the service..i am getting the following message box.
Pls help me..I need it very much
 
 
Thanks&Regards,
Sandhya


Yahoo! Mail
Use Photomail to share photos without annoying attachments.

В списке pgsql-admin по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: Problem with pg_dump
Следующее
От: Mohamed Fazil
Дата:
Сообщение: Re: pls help me(How to start Postgres)