Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am unable to connect to mysql cluster database after starting my management node, data node, mysql node. I made the necessary changes by adding the loadbalance in the dbURL. But I am not able to access the connection. The mysqld port is 1186. Please assist.

String dbURL = "jdbc:mysql:loadbalance://localhost/bank";
String dbDriver = "com.mysql.jdbc.Driver";
private Connection dbCon;
public boolean connect() throws ClassNotFoundException, SQLException {

        // login credentials to your MySQL server
        dbCon = DriverManager.getConnection(dbURL, "root", ""); 
        return true;

The error I am getting when I try to log in is:

javax.servlet.ServletException: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

How do I test MySQL cluster database? I managed to login using the following in command prompt. Please assist.

mysql -h -P5000 -u root

share|improve this question
I managed to connect. – Dwayne Johnson Mar 3 '12 at 3:42

It looks like your MySQLD is running at port 5000, from the working mysql command line. The server listening on port 1186 is probably the cluster management server (ndb_mgmd). It has its own client (ndb_mgm). You cannot connect to it using the mysql client. Similarly, the MySQL JDBC driver cannot connect to it. Frazer

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.