postgresql import

0

Witam , mam problem mianowicie wyeksportowalem baze danych.
I teraz kiedy chce ja zimportowac do innej bazy, wyskakuje mi taki blad :

Czas trwania: 0 s
Data rozpoczęcia: 2012-06-11 13:30
Szczegóły błędu:

ERROR: function "concat" already exists with same argument types

Jest to ten sam serwer , tylko inna domena ( w sumie to subdomena tamtej) .

Potraficie pomoc, poniewaz potrzeba mi odzyskac teksty z tamtej strony. I wymyslilem sobie ,ze najlatwiej bedzie stworzyc inna strone i na nia wgrac ta baze ;)

0

Żartem:

drop function concat

Na serio to w dumpie masz wyeksportowane też procedury, funkcje itp. zatem w czasie importu będą one też wgrywane. Jako, że już istnieją to niestety będziesz miał błędy. Opcje są trzy:

  • przedstawiona wyżej czyli ręczne usunięcie funkcji z bazy, ale to jest zabawa głupiego.
  • usunięcie funkcji z dumpa j.w.
  • wgranie dumpa na fizycznie innym serwerze i eksport tylko interesujących tabel.
0

a bylbys w stanie mi w tym w jakis sposob , pomoc , nie wiem uzyczyc serwer , badz cos takiego ? Moge zaplacic ;)

0

Witam ponownie,

Zainstalowalem sobie program postgreSQL , i nie potrafie dostac sie do bazy danych , dostaje taka informacje

No tylko nie bardzo sie potrafie w tym odnalezc ;)

dostaje taie info jak chce podac dane do bazy :

Access to database denied
The server doesn't grant access to the database: the server reports
FATAL: no pg_hba.conf entry for host "77.55.27.93", user "lalbavita_2", database "postgres"
To access a database on a PostgreSQL server, you first have to grant primary access to the server for your client (Host Based Authentication). PostgreSQL will check the pg_hba.conf file if a pattern that matches your client address / username / database is present and enabled before any SQL GRANT access control lists are evaluated.
The initial settings in pg_hba.conf are quite restrictive, in order to avoid unwanted security holes caused by unreviewed but mandatory system settings. You'll probably want to add something like
host all all 192.168.0.0/24 md5
This example grants MD5 encrypted password access to all databases to all users on the private network 192.168.0.0/24.
You can use the pg_hba.conf editor that is built into pgAdmin III to edit the pg_hba.conf configuration file. After changing pg_hba.conf, you need to trigger a server configuration reload using pg_ctl or by stopping and restarting the server process.

1 użytkowników online, w tym zalogowanych: 0, gości: 1