Bug 125221 - Windows 10 64 bits - LibreOffice Base 6.2.3 - PostgreSQL SDBC driver not registred
Summary: Windows 10 64 bits - LibreOffice Base 6.2.3 - PostgreSQL SDBC driver not regi...
Status: RESOLVED DUPLICATE of bug 125168
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.2.3.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-11 19:45 UTC by Luigi
Modified: 2025-03-18 13:59 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luigi 2019-05-11 19:45:32 UTC
Hello!

I first asked this question on ask.libreoffice.org (https://ask.libreoffice.org/en/question/193452/windows-libreoffice-623-postgresql-sdbc-driver-error/)

Db installed: PostgreSQL 11.3, compiled by Visual C++ build 1914, 64-bit 
LibreOffice version: Version: 6.2.3.2 (x64) 
Build ID: aecc05fe267cc68dde00352a451aa867b3b546ac

I can connect to db via psql and pgadmin.
The problem occurs when i tried to connect via LibreOffice Base.

I downloaded the windows installer and tried to connect to a PostgreSQL db and get this error: "The connection to the external data source could not be established. No SDBC driver was found for the URL".


To get this error, i did: (on Windows)
1. Open Libreoffice Base > Database Wizard
2. Select "Connect to a existing database" and select "PostgreSQL". Next
3. Datasource URL. host=localhost:5432 dbname=mydb . Next
4. Username and Test connection

at this point i fill the password and get this error: "A driver is not registered for the URL host=localhost:5432 dbname=mydb"

I tried without testing the connection and get this error.
"SQL Status: HY000

The connection to the external data source could not be established. No SDBC driver was found for the URL host=localhost:5432 dbname=mydb"

I didn't find on documentation if the windows binaries came with postgres-sdbc driver.
Comment 1 Luigi 2019-05-12 02:55:02 UTC
Hello!

using postgresql://localhost:5432/mydb as string connection, the connection works without problem.
Ratslinger (https://ask.libreoffice.org/en/users/19488/ratslinger/) found this workaround.
Comment 2 Robert Großkopf 2019-05-12 06:58:05 UTC
(In reply to Luigi from comment #0)
> 
> The connection to the external data source could not be established. No SDBC
> driver was found for the URL host=localhost:5432 dbname=mydb"

Did you also try it without adding the port?
host=localhost dbname=mydb

Have tried it without the port and haven't any problem. If I try to add the port "could not translate hostname localhost:5432" appears.

Tested with OpenSUSE 15, LO 6.2.3.2 64bit rpm
Comment 3 Alex Thurgood 2019-05-14 07:31:01 UTC
Isn't this a duplicate of bug 125168 ?
Comment 4 Alex Thurgood 2019-05-14 07:31:26 UTC

*** This bug has been marked as a duplicate of bug 125168 ***
Comment 5 Luigi 2019-05-18 17:52:54 UTC
(In reply to Robert Großkopf from comment #2)
> (In reply to Luigi from comment #0)
> > 
> > The connection to the external data source could not be established. No SDBC
> > driver was found for the URL host=localhost:5432 dbname=mydb"
> 
> Did you also try it without adding the port?
> host=localhost dbname=mydb
> 
> Have tried it without the port and haven't any problem. If I try to add the
> port "could not translate hostname localhost:5432" appears.
> 
> Tested with OpenSUSE 15, LO 6.2.3.2 64bit rpm

Hi, Robert!
tried this and work fine.
Thanks!
Comment 6 NormanMBeaird 2025-03-18 13:59:38 UTC
(In reply to Luigi from comment #1)
> Hello!
> 
> using postgresql://localhost:5432/mydb as string connection, the connection
> works without problem.
> Ratslinger (https://ask.libreoffice.org/en/users/19488/ratslinger/) https://poppyplaytimechapter3.io found
> this workaround.

Bug related to PostgreSQL SDBC driver not registered in LibreOffice Base on Windows 10 and their workaround to establish connection to PostgreSQL database, note that the issue has been marked as duplicate of another reported bug