Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi G - M > Gestione dell'informazione nei sistemi mobili e pervasivi > Progetto, importare dump sql
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
matt
.illuminato.

User info:
Registered: Feb 2008
Posts: 187 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 7:43:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Progetto, importare dump sql

Ciao,
qualcuno è riuscito a installare il dataset fornito per il progetto?

Io sul mac sto riscontrando una serie di problemi.
Dopo aver installato il tutto (postgres, postgis, e tutto le robe necessarie elencate) sono riuscito a eseguire il comando da terminale (psql -f progetto_md.sql -U postgres progetto_md) ma mi elenca una serie di errori, che credo siano dovuti a :

- presenza del comando nuova linea "\N" in alcune (molte) righe

- il dump ricerca la versione 1.5 di postgis, ma sul sito ufficiale per mac si trova la 2.x come .dmg

- altri errori

alla fine mi crea le tabelle, ma riempe solo quella delle categorie.

Qualcuno è riuscito a importarlo? non capisco come installare la versione 1.5 ... sul sito ci sono dei file .tar.gz ma non riesco a installarli, e comunque credo ci siano altri "errori" nel dump.sql

Last edited by matt on 06-01-2013 at 00:52

05-01-2013 16:38
Click Here to See the Profile for matt Click here to Send matt a Private Message Find more posts by matt Add matt to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
matt
.illuminato.

User info:
Registered: Feb 2008
Posts: 187 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 7:43:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho eliminato i tag "\N" e sostituito la stringa "postgis-1.5" con "postgis-2.0", ora da meno errori ma ce ne sono comunque molti altri ... mi sembra impossibile fixarli tutti manualmente.
Qualcuno è riuscito a farlo funzionare?!

06-01-2013 10:58
Click Here to See the Profile for matt Click here to Send matt a Private Message Find more posts by matt Add matt to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Guccio
.fedelissimo.

User info:
Registered: May 2009
Posts: 59 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: Terzo
Time Online: 9:28:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Allora a me dava gli stessi errori su Linux, ho capito poi che era un fatto di permessi.
Ho risolto così, ho effettuato l'accesso come utente postgres (psql postgres ), ho lanciato il file col comando \i 'nome o indirizzo del file' e me l'ha creato, dopo gli ho dato una grant all privileges sul database pois per il mio utente e mi sono riloggato.
QUesta soluzione mi ha funzionato su Linux, spero ti vada su mac

06-01-2013 12:32
Click Here to See the Profile for Guccio Click here to Send Guccio a Private Message Find more posts by Guccio Add Guccio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
matt
.illuminato.

User info:
Registered: Feb 2008
Posts: 187 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 7:43:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Grazie guccio, sto provando, ma sembra dare gli stessi errori, tra cui : "invalid command \N"

Ma dava anche a te questo errore a te prima?

Effettivamente non ha senso che ci siano degli \N nel file,no?
Tu ha installato postgis-1.5 o ti funziona anche con la 2.0?

Inoltre ci sono anche dei tag html (tipo il cuoricino ">3"), dove è presente il punto e virgola ";" nei commenti degli utenti nei checkin, che mi generano altri errori

06-01-2013 13:50
Click Here to See the Profile for matt Click here to Send matt a Private Message Find more posts by matt Add matt to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Guccio
.fedelissimo.

User info:
Registered: May 2009
Posts: 59 (0.01 al dì)
Location: Milano
Corso: Informatica
Anno: Terzo
Time Online: 9:28:59 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Si, esattamente lo stesso errore, quando l'ho lanciato dopo aver effettuato l'accesso al database postgres come utente postgres non mi ha dato nessun errore. Ho installato postgis da reposity ufficiale ma non mi diceva che versione è, non ho trovato neanche un comando tipo '-version' o qualcosa del genere per vedere qual è

06-01-2013 15:28
Click Here to See the Profile for Guccio Click here to Send Guccio a Private Message Find more posts by Guccio Add Guccio to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
matt
.illuminato.

User info:
Registered: Feb 2008
Posts: 187 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 7:43:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ho risolto rimuovendo tutte le vecchie installazioni e reinstallando tutto da qui :

http://www.enterprisedb.com/product.../pgdownload#osx

l'installer di postgres chiederà se si vuole installare postGis a fine installazione

adesso importa tutto senza problemi! (grazie Michele)

10-01-2013 15:27
Click Here to See the Profile for matt Click here to Send matt a Private Message Find more posts by matt Add matt to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
zap
.arcimaestro.

User info:
Registered: Feb 2006
Posts: 490 (0.07 al dì)
Location:
Corso:
Anno:
Time Online: 11 Days, 11:41:15 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao, ma hai installato la 9.2 o la 9.1 per farlo funzionare su MAC? Io avevo riscontrato gli stessi problemi e neppure con la 9.2, facendo l'installazione automatica alla fine di Postgis funzionava tutta l'importazione (mi perdeva due tabelle alcuni dati)...e ho fatto tutto a ricevimento con il prof...dopodichè ho optato per lavorare in ambiente windows.....

Mi fai sapere invece se sei riuscito a fare tutto su Mac? Sarebbe molto più comodo anche per me..=)...grazie!!!

11-01-2013 08:19
Click Here to See the Profile for zap Click here to Send zap a Private Message Find more posts by zap Add zap to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
matt
.illuminato.

User info:
Registered: Feb 2008
Posts: 187 (0.03 al dì)
Location:
Corso:
Anno:
Time Online: 2 Days, 7:43:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ho installato la 9.2.2 (l'ultima disponibile, sul sito linkato prima)
Prova a disinstallare tutto prima di far partire questa intallazione.

L'import poi eseguilo dalla cartella bin che ti verrà creata (/Library/PostgreSQL/9.2/bin)

Ovvero spostati in questa cartella da terminale e esegui il famoso comando "psql -f progetto_md.sql -U postgres progetto_md"


Questo è quello che mi viene importato, 7 tabelle nello schema POIs
Credo sia tutto, quante tabelle ti creava?

12-01-2013 13:45
Click Here to See the Profile for matt Click here to Send matt a Private Message Find more posts by matt Add matt to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 17:29.    Post New Thread    Post A Reply
  Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.040 seconds (73.73% PHP - 26.27% MySQL) con 28 query.