This question already has answers here:
The infamous java.sql.SQLException: No suitable driver found
(21 answers)
Matlab and MySQL no suitable driver found
(2 answers)
Closed 3 years ago.
I am trying to connect to a localhost setup PostgreSQL 10 with Matlab R2015a and after following the instructions and connection string layout, I'm at a loss to explain why I'm still getting a "No suitable driver found" error.
datasource = 'toronto';
username = 'postgres';
password = '********';
driver = 'org.postgresql.Driver';
server = 'jdbc:postresql://localhost:5432/';
connection = database(datasource, username, password, driver, server)
I've checked this related SO thread but no dice. Here's some extra information, hopefully someone has come across this before.
PostgreSQL 10.1, build 1800 64-bit
Java Version 8, built 1.8.0_91-b14
PostgreSQL JDBC 4.2 Driver, 42.1.4
Related
Objective: Set up a connection with PostgreSQL db in PDI. I'm a noob in all this stuff, so each step forward requires long resolution time.
I'm trying to set up the connection to a PostgreSQL database in order to prepare some queries for an ETL process in PDI. But there's no way to succeed with the connection.
I've tried with PostgreSQL connection type and with Generic database connection type and the error is always related with the drivers.
The version of the PostgreSQL db I'm trying to connect is 9.5.25 and I'm working in Ubuntu 20.04 and Java 8 as demands Pentaho Data Integration.
Below the error message after failed connection:
"Connection failed. Verify all connection parameters and confirm that the appropriate driver is installed. Connection to [IP]:[Port] refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections."
I am literally in despair, don't know what I'm doing wrong. Will be very grateful with anyone who can help me.
You need to add the jdbc driver to connect to postgresql DB in the pdi-installation/lib directory, you just put the *.jar file there and restart spoon to have the library available.
That driver can be downloaded from postgresql downloads. The Community Edition of PDI only comes with a small number of jdbc drivers, for each type of database you need to connect to, you should check if the jdbc driver is available in that directory, and if it's up to date or if you need a more recent version of the driver.
This is a link for the official Pentaho documentation, looking for information in Hitachi Vantara documentation is becoming more and more difficult, they don't always clarify what steps apply only for the Enterprise Edition and are not available for the Community Edition: https://help.hitachivantara.com/Documentation/Pentaho/9.2/Setup/JDBC_Drivers_Reference
This question already has answers here:
How to increase the max connections in postgres?
(5 answers)
Closed 3 months ago.
The community reviewed whether to reopen this question 2 months ago and left it closed:
Original close reason(s) were not resolved
I keep getting remaining connection slots are reserved for non-replication superuser connections errors when I run postgres:latest in Docker with Docker Compose.
How can I increase the maximum connections Postgres allows with Docker-Compose?
Note: This is not about Postgres alone, but rather how to pass the values to the official Postgres image on Docker.
You can change the configuration file used by your postgresql image: https://docs.docker.com/samples/library/postgres/#database-configuration
The parameter you want to change is: max_connections, you will find more information about it here : How to increase the max connections in postgres?
I tried to establish a connection in pgAdmin to the PostgresSQL server.
I always get the message:
could not receive data from server: Software caused connection abort (0x00002745/10053).
I read several posts where people had the same problem but they didn't help me.
Because my version was a bit older I uninstalled the whole postgresql and installed the newest version with the installer of EnterpriseDB (PostgreSQL 9.6 on windows 64). Everything looks fine. But I can't connect to the server from pgAdmin 4 again. I get the same error message.
In the logfile is written: "An existing connection was forcibly closed by the remote host"
Has anybody a clue what the problem could be?
A partial solution for me was to restart the postgresql-server each time after booting up my computer with NET STOP and NET START. This was cumbersome but worked.
Because my computer still had other connection problems, subsequently I updated my system to Windows 10 which totally solved all my problems.
I am tryng to configure a connection to postrgresql db server via Services window of Netbeans 7.3.1 and I get the following error:
Cannot establish a connection to jdbc:postgresql://xxx.xxx.xx:5432/ using org.postgresql.Driver (ERROR: Unsupported startup parameter: extra_float_digits)
I have foud a possible workaround :
ignore_startup_parameters = extra_float_digits
Is there some way to set this parameter in a config file?
Thanks
From PostgreSQL 9.2, a new server parameter extra_float_digits is added to control precision display of floating-point numbers Source. I think that it is better to use the right jdbc version for your server PostgreSQL version(9.0.3.2). In your case 9.0-802 JDBC 4
This question already has an answer here:
Closed 12 years ago.
Possible Duplicate:
db2 Type 4 driver downlaod
Hi to all,
I want to connect to the Db2 data base server with java application, I use type4 driver, can you please tell me exact location to download DB2 Type4 driver
Thanq in advance
The actually recommended way is to get this from the DB2 server you are working with because it quarantees you get the correct version of them. You can find them from /sqllib/java .