localhost(默认为 HostName)与其他主机名(XXXX)混合是非法的

我试图创build一个MySQL服务器之间的MySQL服务器5.5安装一个MySQL集群configuration。

在主服务器上,使用以下命令执行ndbpipe理服务器:

ndb_mgmd -f conf/config.ini --initial --configdir=/storage-mysql/mysql_cluster/conf 

我的config.ini在主服务器是:(更改我的IP到XXXX)

 [computer] id=db02 hostname=XXXX [ndb_mgmd] hostname=localhost datadir=/storage-mysql/mysql_cluster/ndb_data nodeid=1 [ndbd default] noofreplicas=2 datadir=/storage-mysql/mysql_cluster/ndb_data [ndbd] hostname=localhost nodeid=3 [ndbd] ExecuteOnComputer=db02 hostname=localhost nodeid=4 [mysqld] nodeid=50 

当我执行sndb_mgmd服务器时,出现以下错误:

 2011-10-02 14:09:47 [MgmtSrvr] ERROR -- at line 9: Mixing of localhost (default for [NDBD]HostName) with other hostname(XXXX) is illegal 2011-10-02 14:09:47 [MgmtSrvr] ERROR -- at line 9: Could not store previous default section of configuration file. 2011-10-02 14:09:47 [MgmtSrvr] ERROR -- Could not load configuration from 'conf/config.ini' 2011-10-02 14:09:47 [MgmtSrvr] ERROR -- Could not determine which nodeid to use for this node. Specify it with --ndb-nodeid=<nodeid> on command line 

我究竟做错了什么?

使用MySQL集群pipe理服务器mysql-5.1.56 ndb-7.1.15a

谢谢!

幼狮

正如它所说:不要把本地主机放在你的configuration文件中。