connection - Connect to PostgreSQL from libreoffice base with SDBC -


i'm trying open connection postgresql database libreoffice sdbc. after installing "postrgre-sdbc-0.7.6" plugin, "postgresql" datasource appears. system asks datasource url enter ip

192.168.0.12 

then user name, ticks "password required" box, , after entering password "test connection" button gives me following error message.

a driver not registered url sdbc:postresql:192.168.0.12 

i tried adding port url (192.168.0.12:5432), same error. suggested rebooted both base , computer, no luck either.

i know server running correctly access no problem pgadminiii these parameters.

as suggested richard, tried

host=192.168.0.12 port=5432 dbname=dataerp connect_timeout=10 host=192.168.0.12 port=5432 dbname=dataerp  host=192.168.0.12 dbname=dataerp dbname=dataerp host=192.168.0.12 

also

//192.168.0.12/dataerp //192.168.0.12:5432/dataerp 192.168.0.12:5432:dataerp 192.168.0.12:5432:dataerp:myusername:mypassword 192.168.0.12:5432=dataerp 

nothing works, still same error message welcome!


after investigations, had installed postgresql odbc driver doing

sudo apt-get install odbc-postgresql 

while needed was:

sudo apt-get install libreoffice-sdbc-postgresql 

the correct connection syntax

host=192.168.0.12 port=5432 dbname=dataerp  

do not forget reboot after or won't work! tip found here

you don't want raw ip address, want libpq connection string.

a quick google "sdbc postgresql url" give sdbc driver page gives example, , link postgresql docs.

in short want string like

dbname=mydatabase host=192.168.0.12 or postgresql://localhost:5432/mydatabase 

there other options port etc - see docs above in "connection strings" section.


Comments

Popular posts from this blog

php - Why I am getting the Error "Commands out of sync; you can't run this command now" -

linux - Does gcc have any options to add version info in ELF binary file? -

java - Are there any classes that implement javax.persistence.Parameter<T>? -