LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-18-2006, 11:41 PM   #31
GosthMan
LQ Newbie
 
Registered: Dec 2005
Distribution: Debian Sarge,Ubuntu,RHE 5, Gentoo,CentOS 5
Posts: 24

Rep: Reputation: 15

i must say that i newer used posgre (just mysql and mssql), but if you can acces the database with command line just make an backup of the databases and recreate them, after that insert the backup. also can be an rights isue, maibe apache has no rights to acces the databases.
 
Old 12-19-2006, 01:18 AM   #32
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Never worked with postgres. How about "pg_connect &"?
 
Old 12-19-2006, 04:09 AM   #33
silexis
LQ Newbie
 
Registered: Dec 2005
Posts: 7

Rep: Reputation: 0
None

Howdy!


I am pasting you some add on PHP forum - maybe help

"If you use pg_connect('host=localhost port=5432 user=my_username password=my_password dbname=my_dbname') and you get the following error:
"Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host localhost and accepting TCP/IP connections on port 5432?"
then you should try to leave the host= and port= parts out of the connection string. This sounds strange, but this is an "option" of Postgre. If you have not activated the TCP/IP port in postgresql.conf then postgresql doesn't accept any incoming requests from an TCP/IP port. If you use host= in your connection string you are going to connect to Postgre via TCP/IP, so that's not going to work. If you leave the host= part out of your connection string you connect to Postgre via the Unix domain sockets, which is faster and more secure, but you can't connect with the database via any other PC as the localhost."

You can check open ports with Nmap: just issue the command

"nmap localhost"

Good luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Console Login Art rebelscum VectorLinux 1 02-08-2006 12:20 PM
cant login to console esgaroth Fedora 1 01-05-2005 09:11 PM
Unable to login via console bug1124 Linux - General 1 12-17-2004 06:50 PM
Is it possible to auto login from console rrautens Linux - Newbie 10 10-15-2003 09:30 AM
I tried to login as console only on mandrake 8.0, but I must not be doing it right 2016 Linux - General 7 01-25-2002 10:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration