I installed PostgreSQL on my Ubuntu 16.04 using apt install - it installed PostgreSQL 9.5.12. I want to use cmdbuild 2.5. It gives me 9.4.1204 JDBC driver by default in tar.gz install file.
But I have some wrong with install cmdbuild, so I think that driver version is wrong.
The database driver is here: https://jdbc.postgresql.org/download.html
But there is no 9.5, it's 42?
Which driver should I download if I want to connect postgresql 9.5.12?
Like the page you link to says:
If you are using Java 8 or newer, 42.2.2 JDBC 42.
If you are using Java 7, 42.2.2 JDBC 41.
If you are using Java 6, 42.2.2 JDBC 4.
As the page says, it supports PostgreSQL 8.2 or newer.
Related
I am trying to use psycopg2 to connect to a Postgres DB but apparently it is not supported in 3.9. Is there another alternative I can use?
Documentation says that 3.9 is supported
Python versions from 3.6 to 3.9
https://www.psycopg.org/docs/install.html#prerequisites
Here is list on Postgres Wiki for other libs https://wiki.postgresql.org/wiki/Python
You can also search on python package index https://pypi.org/search/?q=postgre&o=&c=Topic+%3A%3A+Database&c=Programming+Language+%3A%3A+Python
I am running Keycloak server 3.4.3.Final version, that it used JDBC_POSTGRES_VERSION=42.1.4. I want to know which latest Postgres version (10,11,12,13) will compatibility with 42.1.4 driver.
Thanks a lot!
With the JDBC driver 42.1.4 being released on the 1st of August 2017 (2017-08-01) according to the changelog, you can take a look at the state of the release/download page of Postgres at that time using e.g. the Internet Archive.
A page snapshot from November 2017 (some month after the release) reads the following:
Current Version 42.1.4
This is the current version of the driver. Unless you have unusual
requirements (running old applications or JVMs), this is the driver
you should be using. It supports PostgreSQL 8.2 or newer and requires
Java 6 or newer. It contains support for SSL and the javax.sql
package.
If you are using Java 8 or newer then you should use the JDBC 4.2 version.
If you are using Java 7 then you should use the JDBC 4.1 version.
If you are using Java 6 then you should use the JDBC 4.0 version.
If you are using a Java version older than 6 then you will need to use a JDBC3 version of the driver, which will by necessity not be
current, found in Other Versions.
TL;DR: You can use this driver starting with PostgreSQL 8.2.
PostgreSQL release history:
https://www.postgresql.org/docs/release/
https://www.postgresql.org/support/versioning/
PostgreSQL JDBC release history:
https://jdbc.postgresql.org/documentation/changelog.html
Moodle app is runnung with php 7 and mysql 5.6.
Whenm updating mysql version from 5.6 to 8.0.
Moodle does not connects to database for mysql 8.0
Which version of PHP is it?
If you are using 7.1 then you'll need at least 7.1.16 or at least 7.2.4 for 7.2.
https://www.php.net/manual/en/mysqli.requirements.php
Is the new MySql 8 server using the same port?
Check the port by running this in MySql
SHOW GLOBAL VARIABLES LIKE 'PORT';
The default in Moodle is 3306. If its different then you can change this in the config.php
$CFG->dboptions = array(
'dbport' => 'yournewport'
);
Upgrade Moodle 2.7
Finally, Moodle 2.7 is no longer supported. The last update was May 2017.
The recommended upgrade route is first upgrade to 2.7.20 then to 3.2.9 then to 3.8.x
https://docs.moodle.org/38/en/Upgrading
I was using PostgresSQL version 9.6 with JDBC driver 9.4-1206-jdbc42 to connect to Java. I was using the SimpleJDBCCall of Springs to connect to the database.
However, after the upgrade of PostgreSQL to 10.5, we are unable to use the SimpleJDBCCall API. Any light on this issue will be of great help.
You should never use a version of the JDBC driver that is older than the PostgreSQL server release.
The recommendation is to always use the latest driver version. A new driver will know how to talk to an old server, while an old driver might not know how to talk to a new server.
I am using the operating system Windows Home Basic Premium. I installed Oracle 10g Express Edition also 11g, it installed correctly but when I would go for adding driver from ODBC I didn't find any Express driver.
That's why I can't run any Java database project; it shows me driver not loaded. This is first I face problem using any software.
First off, in general, you should not be using ODBC if you are developing a Java application. Java applications generally use the JDBC driver to connect to the database. It is possible to use a JDBC to ODBC bridge driver but that was really only appropriate years ago when not every database had a JDBC driver. There would be no reason to use a JDBC to ODBC bridge driver to connect to an Oracle database in an application built today.
That being said, are you using a 32-bit version of Windows or a 64-bit version of Windows? Did you install 32-bit versions of Oracle or 64-bit versions of Oracle? If you are using a 64-bit version of Windows, the default ODBC Driver Administrator will only display the 64-bit ODBC drivers that are installed. If you installed 32-bit versions of Oracle, you'll need to open the 32-bit ODBC Driver Administrator at C:\Windows\SysWOW64\odbcad32.exe in order to access the 32-bit ODBC drivers.