MySQL集群简介与配置详解

MySQL集群简介与配置详解
复制[MySQLD]                          ndbcluster                     # run NDB engine   ndb-connectstring=192.168.1.251 # location of MGM node   # Options for ndbd process:   [MySQL_CLUSTER]                   ndb-connectstring=192.168.1.251 # location of MGM node   A: /var/lib/MySQL-cluster/config.ini   [NDBD DEFAULT]      NoOfReplicas=1   # Number of replicas   DataMemory=80M   # How much memory to allocate for data storage   IndexMemory=18M  # How much memory to allocate for index storage                    # For DataMemory and IndexMemory,集介配解 we have used the                    # default values. Since the "world" database takes up                    # only about 500KB, this should be more than enough for                    # this example Cluster setup.   # TCP/IP options:   [TCP DEFAULT]       portnumber=2202  # This the default; however, you can use any                    # port that is free for all the hosts in cluster                    # Note: It is recommended beginning with MySQL 5.0 that                    # you do not specify the portnumber at all and simply allow                    # the default value to be used instead   # Management process options:   [NDB_MGMD]                        hostname=192.168.1.251          # Hostname or IP address of MGM node   datadir=/var/lib/MySQL-cluster # Directory for MGM node logfiles   # Options for data node "A":   [NDBD]                            # (one [NDBD] section per data node)   hostname=192.168.1.251          # Hostname or IP address   datadir=/usr/local/MySQL/data  # Directory for this data nodes datafiles   # SQL node options:   [MySQLD]   hostname=192.168.1.254   #[MySQLD] #这个相当于192.168.1.251   1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.
域名
上一篇:电脑蓝屏错误时间的解决方法(提高电脑稳定性,有效应对蓝屏错误)
下一篇:火影电脑系统重置教程(快速恢复系统正常运行,让电脑如新)