在尝试使我的集群基于磁盘时,我发出了以下命令:
CREATE LOGFILE GROUP LG1 ADD UNDOFILE 'undo1.log'
INITIAL_SIZE = 150M UNDO_BUFFER_SIZE = 164M ENGINE NDBCLUSTER;并得到这个错误:
ERROR 1064 (42000): You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version
for the right syntax to use near '150M UNDO_BUFFER_SIZE = 164M
ENGINE NDBCLUSTER' at line 1谢谢。
(集群在内存中工作,但我需要磁盘空间)。
使用mysql-5.5.29 ndb-7.2.10
发布于 2013-01-30 00:18:01
显然,此命令不会将M或G转换为值后的值,因此您必须将2M转换为2097152 (1024x1024x2)。
所以命令应该是
CREATE LOGFILE GROUP LG1 ADD UNDOFILE 'undo1.log'
INITIAL_SIZE = 157286400 UNDO_BUFFER_SIZE = 171966464 ENGINE NDBCLUSTER;https://stackoverflow.com/questions/14566526
复制相似问题