![]() | |
#21
| |||
| |||
|
|
I checked the timerex.php.ini file (One they said I should take extra care to backup and the Databse sections has this: [database] database_name = timetrex ; type = postgres8 host = localhost:5433 Looking in Synaptic Package Manager it seems to say that the postgresql client is running but not the server. So I'm still puzzled as to how TimeTrex is accessing the database. |
|
Could I safely install & run the Postgresql Server app without destroying my database? I tried running the command: psql -p 543 timetrex timetrex and still got: psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5433"? |
|
How can I check if the Postgres install is in a standard location and that TimeTrex have not done some wierd custom install? |
#22
| |||
| |||
|
|
On Thu, 02 Dec 2010 17:54:12 +0000, Jasen Betts wrote: t seems the database server isn't where psql expected it to be. assuming TimeTrac (whatever that is) is functioning correctly I'd be looking at its configuration for clues, or perhaps it has an inbuilt database backup functionality? on the other hand this might work better sudo su postgres -- -c psql If postgresql is not running on the default port, it is easy to figure out which port is used: mgogala@medo ~]$ nmap -sT -T5 localhost Starting Nmap 5.21 ( http://nmap.org ) at 2010-12-09 23:15 EST Nmap scan report for localhost (127.0.0.1) Host is up (0.00029s latency). rDNS record for 127.0.0.1: localhost.localdomain Not shown: 996 closed ports PORT STATE SERVICE 22/tcp open ssh 80/tcp open http 631/tcp open ipp 5432/tcp open postgresql Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds And here is a linux equivalent to tnsping: [mgogala@medo ~]$ nc -z -w3 -v localhost 5432 Connection to localhost 5432 port [tcp/postgres] succeeded! [mgogala@medo ~]$ nc -z -w3 -v localhost 1521 nc: connect to localhost port 1521 (tcp) failed: Connection refused [mgogala@medo ~]$ |
![]() |
| Thread Tools | |
| Display Modes | |
| |