473,503 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

When I try to connect to a database, I get the following error : psql teleflowdb8

3 New Member
When I try to connect to a database, I get the following error :

psql teleflowdb8

psql: FATAL: database is not accepting commands to avoid wraparound data loss in database "teleflowdb8"
HINT: Stop the postmaster and use a standalone backend to vacuum database "teleflowdb8".

Then I try to go to standalone mode:

$./postgresql-8.2 stop
$su postgres
$cd /usr/lib/postgresql/8.2/bin

$./postgres --single -D /var/lib/postgresql/8.2/main/ teleflowdb8

I got the following error :
--single cannot access the server configuration file "/var/lib/postgresql/8.2/main/postgresql.conf": No such file or directory

When to check the postgresql.conf file is located at /etc/postgresql/8.2/main

$ls

environment
log
pgdata
pg_hba.conf
pg_ident.conf
postgresql.conf
start.conf


So I did :

$./postgres --single -D /etc/postgresql/8.2/main teleflowdb8

But error as follows.
2012-02-24 19:04:28 SGT FATAL: "/etc/postgresql/8.2/main" is not a valid data directory
2012-02-24 19:04:28 SGT DETAIL: File "/etc/postgresql/8.2/main/PG_VERSION" is missing.

I do not have the /var/lib/pgsql/data directory.

Can anyone help on this issue. TQ
Feb 24 '12 #1
2 2036
wan fasiha
3 New Member
Please someone respond to this issue. tq
Feb 25 '12 #2
r035198x
13,262 MVP
Do you have a database initialized through the initdb command?
Feb 27 '12 #3

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

Similar topics

0
1639
by: bob .net | last post by:
Server exploI have recently installed Visual Studio .Net 2002 on my workstation running XP Professional. I can connect to local Access and MSDE databases successfully using ADO .Net. I can also...
1
1687
by: zelzel.zsu | last post by:
What is php's behavior when connect to a db? I've been told that php was once a dominant web programing language. I've read a few chapters of a php book. I was wonder what's php's performance....
1
7708
by: timVerizon | last post by:
Hoping someone can help here.. Our application (C#.Net) was receiving IBM.Data.DB2.DB2Exceptions ERROR SQL0904N Unsuccessful execution caused by an unavailable resource. Reason code: '', type...
4
3621
by: Alpha | last post by:
I have a window Application. this.close(); doesn't stop and close my application when I get an error. Instead it continues trying to execute the following codes. What code do I need to the...
1
2016
by: Ranjan as usual | last post by:
Dear folks I wrote a small snippet in VB .NET to connect to the exchange store, the code is below, however I get the following error message. Any solutions , or pointers would be appreciated. My...
4
5176
by: Phil Campaigne | last post by:
Hi All, I just installed postgresql 7.3.4 as an upgrade to 7.3.2 and all went well untill I tried to log into a database that I successfully created. Here are the steps in question: bash-2.05b$...
2
5498
by: mike_li | last post by:
On Window 2000 Professional Server DB2 UDB Level: DB2 code release "SQL07029" with level identifie "030A0105" and informational tokens "DB2 v7.1.0.98", "n040510" and "WR21337". In the...
21
27982
by: Peter Nurse | last post by:
I have just upgraded to SQL Server 2005 from SQL Server 2000. In Microsoft SQL Server Management Studio, when I click on database properties, I receive the following error:- Cannot resolve the...
3
2339
by: venkatesh | last post by:
hai to everybody I need to know how to connect database ms access or oracle with c or c++? please if u know tell I am interested in doing project with c thanks in advance....
3
1486
by: jeenajos | last post by:
Hi all, Im new to .net. When i tried to connect database using the below code an error came as Instance Failure. Pls Help Me. con = New SqlConnection("Data...
0
7199
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7076
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7274
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7453
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5005
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
3162
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3151
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
732
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
377
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.