`
xiaolaogong
  • 浏览: 66869 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
社区版块
存档分类
最新评论

mysql-cluster

 
阅读更多

[ndb_mgmd] 

hostname=192.168.1.101

id=1 

 

[ndbd default] 

noofreplicas=2 

datadir=D:\DEVTOOLS\mysqlcluster\cluster\data

 

[ndbd] 

hostname=192.168.1.102

id=2 

 

[ndbd] 

hostname=192.168.1.103

id=3 

 

[mysqld]

id=102

hostname=192.168.1.102

 

[mysqld]

id=103

hostname=192.168.1.103

 

[mysqld]

id=104

hostname=192.168.1.104

 

--------------------------------------------------------------------------------------------------------------------------------

 

# MySQL Server Instance Configuration File

# ----------------------------------------------------------------------

# Generated by the MySQL Server Instance Configuration Wizard

#

#

# Installation Instructions

# ----------------------------------------------------------------------

#

# On Linux you can copy this file to /etc/my.cnf to set global options,

# mysql-data-dir/my.cnf to set server-specific options

# (@localstatedir@ for this installation) or to

# ~/.my.cnf to set user-specific options.

#

# On Windows you should keep this file in the installation directory 

# of your server (e.g. C:\Program Files\MySQL\MySQL Server X.Y). To

# make sure the server reads the config file use the startup option 

# "--defaults-file". 

#

# To run run the server from the command line, execute this in a 

# command line shell, e.g.

# mysqld --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"

#

# To install the server as a Windows service manually, execute this in a 

# command line shell, e.g.

# mysqld --install MySQLXY --defaults-file="C:\Program Files\MySQL\MySQL Server X.Y\my.ini"

#

# And then execute this in a command line shell to start the server, e.g.

# net start MySQLXY

#

#

# Guildlines for editing this file

# ----------------------------------------------------------------------

#

# In this file, you can use all long options that the program supports.

# If you want to know the options a program supports, start the program

# with the "--help" option.

#

# More detailed information about the individual options can also be

# found in the manual.

#

#

# CLIENT SECTION

# ----------------------------------------------------------------------

#

# The following options will be read by MySQL client applications.

# Note that only client applications shipped by MySQL are guaranteed

# to read this section. If you want your own MySQL client program to

# honor these values, you need to specify it as an option during the

# MySQL client library initialization.

#

[client]

 

port=3301

 

[mysql]

 

default-character-set=utf8

 

 

# SERVER SECTION

# ----------------------------------------------------------------------

#

# The following options will be read by the MySQL Server. Make sure that

# you have installed the server correctly (see above) so it reads this 

# file.

#

[mysqld]

ndb-nodeid=102

 

# The TCP/IP Port the MySQL Server will listen on

port=3301

 

 

#Path to installation directory. All paths are usually resolved relative to this.

basedir="D:/DEVTOOLS/mysqlcluster/mysql_one/mysql5.1.32"

 

#Path to the database root

datadir="D:/DEVTOOLS/mysqlcluster/mysql_one/mysql5.1.32/Data/"

 

# The default character set that will be used when a new schema or table is

# created and no character set is defined

default-character-set=utf8

 

# The default storage engine that will be used when create new tables when

default-storage-engine=INNODB

 

# Set the SQL mode to strict

sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

 

# The maximum amount of concurrent sessions the MySQL server will

# allow. One of these connections will be reserved for a user with

# SUPER privileges to allow the administrator to login even if the

# connection limit has been reached.

max_connections=100

 

# Query cache is used to cache SELECT results and later return them

# without actual executing the same query once again. Having the query

# cache enabled may result in significant speed improvements, if your

# have a lot of identical queries and rarely changing tables. See the

# "Qcache_lowmem_prunes" status variable to check if the current value

# is high enough for your load.

# Note: In case your tables change very often or if your queries are

# textually different every time, the query cache may result in a

# slowdown instead of a performance improvement.

query_cache_size=0

 

# The number of open tables for all threads. Increasing this value

# increases the number of file descriptors that mysqld requires.

# Therefore you have to make sure to set the amount of open files

# allowed to at least 4096 in the variable "open-files-limit" in

# section [mysqld_safe]

table_cache=256

 

# Maximum size for internal (in-memory) temporary tables. If a table

# grows larger than this value, it is automatically converted to disk

# based table This limitation is for a single table. There can be many

# of them.

tmp_table_size=17M

 

 

# How many threads we should keep in a cache for reuse. When a client

# disconnects, the client's threads are put in the cache if there aren't

# more than thread_cache_size threads from before.  This greatly reduces

# the amount of thread creations needed if you have a lot of new

# connections. (Normally this doesn't give a notable performance

# improvement if you have a good thread implementation.)

thread_cache_size=8

 

#*** MyISAM Specific options

 

# The maximum size of the temporary file MySQL is allowed to use while

# recreating the index (during REPAIR, ALTER TABLE or LOAD DATA INFILE.

# If the file-size would be bigger than this, the index will be created

# through the key cache (which is slower).

myisam_max_sort_file_size=100G

 

# If the temporary file used for fast index creation would be bigger

# than using the key cache by the amount specified here, then prefer the

# key cache method.  This is mainly used to force long character keys in

# large tables to use the slower key cache method to create the index.

myisam_sort_buffer_size=33M

 

# Size of the Key Buffer, used to cache index blocks for MyISAM tables.

# Do not set it larger than 30% of your available memory, as some memory

# is also required by the OS to cache rows. Even if you're not using

# MyISAM tables, you should still set it to 8-64M as it will also be

# used for internal temporary disk tables.

key_buffer_size=24M

 

# Size of the buffer used for doing full table scans of MyISAM tables.

# Allocated per thread, if a full scan is needed.

read_buffer_size=64K

read_rnd_buffer_size=256K

 

sort_buffer_size=256K

 

 

 

 

innodb_additional_mem_pool_size=2M

 

 

innodb_flush_log_at_trx_commit=1

 

 

innodb_log_buffer_size=1M

 

 

innodb_buffer_pool_size=45M

 

 

innodb_log_file_size=23M

 

 

innodb_thread_concurrency=8

 

-----------------------------------------------------------------------------------------

 

 

 

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mysql_cluster]

"Type"=dword:00000010

"Start"=dword:00000003

"ErrorControl"=dword:00000001

"ImagePath"=hex(2):44,00,3a,00,5c,00,44,00,45,00,56,00,54,00,4f,00,4f,00,4c,00,\

  53,00,5c,00,6d,00,79,00,73,00,71,00,6c,00,63,00,6c,00,75,00,73,00,74,00,65,\

  00,72,00,5c,00,63,00,6c,00,75,00,73,00,74,00,65,00,72,00,5c,00,62,00,69,00,\

  6e,00,5c,00,6d,00,79,00,73,00,71,00,6c,00,64,00,2e,00,65,00,78,00,65,00,20,\

  00,6d,00,79,00,73,00,71,00,6c,00,5f,00,63,00,6c,00,75,00,73,00,74,00,65,00,\

  72,00,00,00

"DisplayName"="mysql_cluster"

"ObjectName"="LocalSystem"

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mysql_cluster\Enum]

"0"="Root\\LEGACY_mysql_cluster\\0000"

"Count"=dword:00000001

"NextInstance"=dword:00000001

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mysql_cluster\Security]

"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\

  00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\

  00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\

  05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\

  20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\

  00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\

  00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

 

 

 

------------------------------------------------------------------------------------------------------------

 

Windows Registry Editor Version 5.00

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mysql_cluster_one]

"Type"=dword:00000010

"Start"=dword:00000003

"ErrorControl"=dword:00000001

"ImagePath"=hex(2):44,00,3a,00,5c,00,44,00,45,00,56,00,54,00,4f,00,4f,00,4c,00,\

  53,00,5c,00,6d,00,79,00,73,00,71,00,6c,00,63,00,6c,00,75,00,73,00,74,00,65,\

  00,72,00,5c,00,6d,00,79,00,73,00,71,00,6c,00,5f,00,6f,00,6e,00,65,00,5c,00,\

  6d,00,79,00,73,00,71,00,6c,00,35,00,2e,00,31,00,2e,00,33,00,32,00,5c,00,62,\

  00,69,00,6e,00,5c,00,6d,00,79,00,73,00,71,00,6c,00,64,00,2e,00,65,00,78,00,\

  65,00,20,00,6d,00,79,00,73,00,71,00,6c,00,5f,00,63,00,6c,00,75,00,73,00,74,\

  00,65,00,72,00,5f,00,6f,00,6e,00,65,00,00,00

"DisplayName"="mysql_cluster_one"

"ObjectName"="LocalSystem"

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mysql_cluster_one\Enum]

"0"="Root\\LEGACY_mysql_cluster_one\\0000"

"Count"=dword:00000001

"NextInstance"=dword:00000001

 

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mysql_cluster_one\Security]

"Security"=hex:01,00,14,80,90,00,00,00,9c,00,00,00,14,00,00,00,30,00,00,00,02,\

  00,1c,00,01,00,00,00,02,80,14,00,ff,01,0f,00,01,01,00,00,00,00,00,01,00,00,\

  00,00,02,00,60,00,04,00,00,00,00,00,14,00,fd,01,02,00,01,01,00,00,00,00,00,\

  05,12,00,00,00,00,00,18,00,ff,01,0f,00,01,02,00,00,00,00,00,05,20,00,00,00,\

  20,02,00,00,00,00,14,00,8d,01,02,00,01,01,00,00,00,00,00,05,0b,00,00,00,00,\

  00,18,00,fd,01,02,00,01,02,00,00,00,00,00,05,20,00,00,00,23,02,00,00,01,01,\

  00,00,00,00,00,05,12,00,00,00,01,01,00,00,00,00,00,05,12,00,00,00

 


分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics