What is the compatibility of YSQL with JDBC drivers

#1

Does YSQL (distributed Postgres in YugaByte DB) work with JDBC drivers?

0 Likes

#2

Yes it works with standard Postgres JDBC driver… here’s the connection string I use with my psql client and JDBC code
jdbc:postgresql://YUGABYTE-SERVER-IP:5433/postgres

2 Likes

#3

Here is a short tutorial as well to get a very simple app going against YugaByte DB using JDBC drivers: https://docs.yugabyte.com/latest/develop/client-drivers/java/

0 Likes