Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1560

MySQL Cluster SQL Node connection is not working (no replies)

$
0
0
Hello, I am creating all node on same server for testing but I am not able to get connected to SQL node I have tried this setup on different server still no luck. I am sharing configuration file detail below.
Management Node Output

ndb_mgm> show
Connected to Management Server at: 127.0.0.1:1186
Cluster Configuration
---------------------
[ndbd(NDB)] 1 node(s)
id=2 @127.0.0.1 (mysql-5.7.16 ndb-7.5.4, Nodegroup: 0, *)

[ndb_mgmd(MGM)] 1 node(s)
id=1 @127.0.0.1 (mysql-5.7.16 ndb-7.5.4)

[mysqld(API)] 1 node(s)
id=3 (not connected, accepting connect from any host)

ndb_mgm> ALL STATUS
Node 2: started (mysql-5.7.16 ndb-7.5.4)


/var/lib/mysql-cluster/config.ini

[ndbd default]
# Options affecting ndbd processes on all data nodes:
NoOfReplicas=1 # Number of replicas

[mysqld default]
[ndb_mgmd default]
[tcp default]

[ndb_mgmd]
# Management process options:
hostname=X.X.X.X # Hostname or IP address of MGM node
datadir=/var/lib/mysql-cluster # Directory for MGM node log files
nodeid=1

[ndbd]
# Options for data node "A":
nodeid=2 # (one [ndbd] section per data node)
hostname=X.X.X.X # Hostname or IP address
datadir=/usr/local/mysql/data # Directory for this data node's data file

[mysqld]
# SQL node options:
hostname=X.X.X.X # Hostname or IP address
nodeid=3 # (additional mysqld connections can be
# specified for this node for various
# purposes such as running ndb_restore)

/etc/my.cnf

# MySQL Config
[mysqld]
datadir=/usr/local/mysql/data
socket=/tmp/mysql.sock
user=mysql

# Run ndb storage engine
ndbcluster
# IP address management node
ndb-connectstring=X.X.X.X

[mysql_cluster]
# IP address management node
ndb-connectstring=X.X.X.X

# MySQL Pid and Log
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

Viewing all articles
Browse latest Browse all 1560

Trending Articles



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