you typed the command wrong and presumably overwrote your config.ini:
You should do:
ndb_mgmd -f /var/lib/mysql-cluster/config.ini --configdir=/var/lib/mysql-cluster/
--initial
But first verify your
/var/lib/mysql-cluster/config.ini
-j
On 2011-11-08 11.53, Ridd1ck wrote:
> I try to change my config of the cluster managment server and the config
> never changes.
> I follow this steps:
> 1.First I was change the config.ini with some options.
> 2.Shutdown the cluster with shutdown command in ndb_mgm
> 3.Shutdown all data nodes with mysqladmin shutdown command
> 4. then i try to start the cluster with this command
> ndb_mgmd -f /var/lib/mysql-cluster/config.ini
> --configdir=/var/lib/mysql-cluster/config.ini --initial
> first i get this error:
>
> MySQL Cluster Management Server mysql-5.1.56 ndb-7.1.14
> 2011-11-08 12:38:22 [MgmtSrvr] ERROR -- Could not determine which nodeid
> to use for this node. Specify it with --ndb-nodeid=<nodeid> on command line
>
> (also i try with this command:
> ndb_mgmd -f /var/lib/mysql-cluster/config.ini
> --configdir=/var/lib/mysql-cluster/config.ini --reload)
>
> and then when i try to use show command on ndb_mgm i get this:
> [root@m1163 ~]# ndb_mgm
> -- NDB Cluster -- Management Client --
> ndb_mgm> show;
> Unable to connect with connect string: nodeid=0,localhost:1186
> Retrying every 5 seconds. Attempts left: 2^C
>
> Then try to start with ndb_mgmd and the ndb_mgm with show command replies
> perfect but the ndb_mgmd does not read the new config file, because when use
> this command ndb_mgmd -P the config is the default config.
>
> Please answer me.
> Thanks.
>
>
> --
> View this message in context:
> http://mysql-cluster.1050023.n4.nabble.com/Managment-Server-Can-t-read-Config-ini-tp4015584p4015584.html
> Sent from the MySQL - Cluster mailing list archive at Nabble.com.
>