Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> phpPgAdmin, obsługa bazy na innym serwerze
Andrew313
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 17.03.2006

Ostrzeżenie: (0%)
-----


Witam wszystkich,
Chciałbym zmodyfikować bazę na serwerze gdzie mam stronę WWW.
U siebie mam Krasnala z phpPgAdmin (bez postgreSQL).
Na serwerze z którym chcę się połączyć jest postgreSQL, jest nazwa bazy user i hasło.
Zmodyfikowałem u siebie plik config.inc.php:
  1. <?php
  2.  
  3.     /**
  4.      * Central phpPgAdmin configuration.  As a user you may modify the
  5.      * settings here for your particular configuration.
  6.      *
  7.      * $Id: config.inc.php-dist,v 1.34 2004/05/08 14:45:10 chriskl Exp $
  8.      */
  9.  
  10.     // An example server.  Create as many of these as you wish,
  11.     // indexed from zero upwards.
  12.  
  13.     // Display name for the server on the login screen
  14.     $conf['servers'][0]['desc'] = "Serwer z którym się będę łączył";
  15.  
  16.     // Hostname or IP address for server.  Use '' for UNIX domain socket.
  17.     $conf['servers'][0]['host'] = 'http://www.nazwa.domeny.pl';
  18.  
  19.     // Database port on server (5432 is the PostgreSQL default)
  20.     $conf['servers'][0]['port'] = 5432;
  21.  
  22.     // Change the default database only if you cannot connect to template1
  23.     $conf['servers'][0]['defaultdb'] = 'nazwa_bazy';
  24.  
  25. ?>

Login i hasło podaje w okienku phpPgAdmina. Poza tym w pliku konfiguracyjnym nie ma chyba miejsca aby dodać hasło i login.
Nie łącze się z ich serwerem , Co robię źle?

Pozdrawiam

Ten post edytował Andrew313 21.03.2006, 16:28:31
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 20.08.2025 - 14:57