Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

Connecting to MySQL NDB Cluster (1 reply)

$
0
0
Hello

Has anyone out here used java to make a connection to the MySQL NDB cluster? I can't get it to work (no errors, but I can't connect also)

The settings which I am using are:

1. Database URL: jdbc:mysql:loadbalance://172.31.92.202:3306,172.31.25.182:3306/clustertest

2. JDBC Driver Class:
com.mysql.cj.jdbc.Driver

3. Username:
root

4. Password:
root

I am connecting through Jmeter using the mysql-connector-java-8.0.25.jar.

Thanks!
Deepak

P.S: I can connect to the two MySQL Server nodes directly through Jmeter (172.31.92.202:3306,172.31.25.182:3306). The settings used by me are:

Database URL:
jdbc:mysql://172.31.92.202:3306/clustertest
jdbc:mysql://172.31.25.182:3306/clustertest

Driver:
com.mysql.jdbc.Driver

Username:
root

Password:
root

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>