Unable to connect to MySQL cluster database
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