%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : www.kowitt.ac.th / Your IP : 216.73.216.118 Web Server : Microsoft-IIS/7.5 System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.6.31 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/ProgramData/MySQL/MySQL Installer for Windows/Manifest/Templates/ |
Upload File : |
## MySQL Server Instance Configuration File Template ## ---------------------------------------------------------------------- ## Version 1.0.8 ## ## <-- Indicates Template comment. These lines will not be in the output ## ## Replaceable things must be like: ## ## # [VARIABLE_NAME]="Formula" ## parameter=default value ## ## For example: ## ## # [PORT]="port" ## port=3306 ## ## Note - In the example, the formula consists of a variable named 'port' which must be defined before processing. ## ## In addition to the standard max operators (+, -, /, *), the "formula" field supports the following functions: ## ## rnd(x, y) = Round x to the nearest y ## max(x, y) = Max value from x, y ## min(x, y) = Min value from x, y ## ## and named variables. ## ## For example: ## ## # [MAX_CONNECTIONS]="max_connections:rnd(max(100,max_connections),1000)" ## max_connections= ## ## ( Note - Uninitialized variables have a value of 0. ) ## ## Finally, there is a special directive named [STATE_CHANGE] that allows for a function to be exectuted at that ## point during template processing. ## ## For example: ## # [STATE_CHANGE]="new_variable : 1" ## ## The following variables must be defined before the formulas are evaluated (otherwise, you get many values set to 0): ## ## memory - Server Type ## Dedicated Server (90% of System Memory), Server (50% of System Memory), All others( rnd(max( 1/12 System Memory, 40*1024*1024), 1024)) ## myiasm_percentage - Table Type ## If main InnoDB, set to 5. Allow userdef. ## active_connections - # Connections. ## DSS = 20, OLTP = 500, else user_defined. ## cpus - Number of CPUS on the machine. ## # Other default tuning values ## ## innodb_buffer_pool_size_percentage=2/10 # [STATE_CHANGE]="over_commit_factor:10" ## ## # 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 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 # # # Guidelines 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] # [CLIENT_PIPE]="" # pipe= # [CLIENT_SOCKET]="socket" # socket= # [CLIENT_PORT]="port" port=3306 [mysql] no-beep # [CLIENT_DEFAULT_CHARACTER_SET]="" # default-character-set= # 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. # # [SERVER_TYPE]="server_type" # server_type= [mysqld] # The next three options are mutually exclusive to SERVER_PORT below. # [SERVER_SKIP]="" # skip-networking= # [SERVER_PIPE]="" # enable-named-pipe= # The Pipe the MySQL Server will use # [SERVER_SOCKET]="" # socket=mysql= # The TCP/IP Port the MySQL Server will listen on # [SERVER_PORT]="port" port=3306 # Path to installation directory. All paths are usually resolved relative to this. # [BASE_DIR]="basedir" # basedir= # Path to the database root # [DATA_DIR]="datadir" datadir= # The default character set that will be used when a new schema or table is # created and no character set is defined # [SERVER_DEFAULT_CHARACTER_SET]="" # character-set-server= # The default storage engine that will be used when create new tables when # [DEFAULT_STORAGE_ENGINE]="default_storage_engine" default-storage-engine= # Set the SQL mode to strict # [SQL_MODE]="" sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" # General and Slow logging. # [LOG_OUT]="log_out" log-output= # [GEN_QUERY]="gen_query" general-log= # [GEN_QUERY_FILE]="gen_query_file" general_log_file= # [SLOW_QUERY]="slow_query" slow-query-log= # [SLOW_QUERY_FILE]="slow_query_file" slow_query_log_file= # [LONG_QUERY]="long_query_time" long_query_time= # Binary Logging. # [LOG_BIN]="log_bin" log-bin= # Error Logging. # [LOG_ERR]="log_error" log-error= # Server Id. # [SERVER_ID]="server_id" server-id= # Indicates how table and database names are stored on disk and used in MySQL. # Value = 0: Table and database names are stored on disk using the lettercase specified in the # CREATE TABLE or CREATE DATABASE statement. Name comparisons are case sensitive. # You should not set this variable to 0 if you are running MySQL on a system that has # case-insensitive file names (such as Windows or macOS). # Value = 1: Table names are stored in lowercase on disk and name comparisons are not # case-sensitive. MySQL converts all table names to lowercase on storage and lookup. # This behavior also applies to database names and table aliases. # Value = 3, Table and database names are stored on disk using the lettercase specified in the # CREATE TABLE or CREATE DATABASE statement, but MySQL converts them to lowercase on # lookup. Name comparisons are not case sensitive. This works only on file systems # that are not case-sensitive! InnoDB table names and view names are stored in # lowercase, as for Value = 1. # NOTE: lower_case_table_names can only be configured when initializing the server. # Changing the lower_case_table_names setting after the server is initialized is prohibited. # [LOWER_CASE_TABLE_NAMES]="lower_case_table_names" lower_case_table_names= # Secure File Priv. # [SECURE_FILE_PRIV]="secure_file_priv" # secure-file-priv= # 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. # [STATE_CHANGE]="max_connections:rnd(min(active_connections*15/10+10,memory/512K),1000)" # [MAX_CONNECTIONS]="max_connections:rnd(max(100,max_connections),1000)" max_connections= # 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] # [STATE_CHANGE]="buffers_memory:available_memory*7/10" # [STATE_CHANGE]="thread_buffers_memory:available_memory*3/10" # [STATE_CHANGE]="memory_per_thread:thread_buffers_memory*over_commit_factor/max_connections" # [TABLE_OPEN_CACHE]="table_open_cache:2000" table_open_cache= # 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. # [STATE_CHANGE]="buffers_memory:buffers_memory-table_open_cache*8K" # [STATE_CHANGE]="big_thread_buffers:memory_per_thread*over_commit_factor" # [STATE_CHANGE]="tmp_table_size:max(16M,big_thread_buffers)" # [TMP_TABLE_SIZE]="tmp_table_size:min(tmp_table_size,memory*1/10)","USE_BYTES" tmp_table_size= # 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.) # [STATE_CHANGE]="thread_cache_size:max(max_connections*5/100,8)" # [THREAD_CACHE_SIZE]="thread_cache_size:rnd(min(thread_cache_size,64),1000)" thread_cache_size= #*** 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 # The size of the buffer that is allocated when sorting MyISAM indexes # during a REPAIR TABLE or when creating indexes with CREATE INDEX # or ALTER TABLE. # [STATE_CHANGE]="myisam_sort_buffer_size:max(8M,big_thread_buffers)" # [MYISAM_SORT_BUFFER_SIZE]="myisam_sort_buffer_size:min(myisam_sort_buffer_size,memory*2/10)","USE_BYTES" myisam_sort_buffer_size= # 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. # [STATE_CHANGE]="myisam_buffers:buffers_memory*(myisam_percentage/100)" # [KEY_BUFFER_SIZE]="key_buffer_size:max(8M,myisam_buffers/2)","USE_BYTES" key_buffer_size= # Size of the buffer used for doing full table scans of MyISAM tables. # Allocated per thread, if a full scan is needed. # [STATE_CHANGE]="read_buffer_size:min(64K,memory_per_thread*2/100)" # [READ_BUFFER_SIZE]="read_buffer_size:min(read_buffer_size,memory/100)","USE_BYTES" read_buffer_size= # [STATE_CHANGE]="read_rnd_buffer_size:min(256K,memory_per_thread*4/10)" # [READ_RND_BUFFER_SIZE]="read_rnd_buffer_size:min(read_rnd_buffer_size,memory*4/100)","USE_BYTES" read_rnd_buffer_size= # This buffer is allocated when MySQL needs to rebuild the index in # REPAIR, OPTIMZE, ALTER table statements as well as in LOAD DATA INFILE # into an empty table. It is allocated per thread so be careful with # large settings. # [STATE_CHANGE]="sort_buffer_size:min(256K,memory_per_thread*3/10)" # [SORT_BUFFER_SIZE]="sort_buffer_size:min(sort_buffer_size,memory*2/100)","USE_BYTES" sort_buffer_size= #*** INNODB Specific options *** # [INNODB_HOME]="" # innodb_data_home_dir= # Use this option if you have a MySQL server with InnoDB support enabled # but you do not plan to use it. This will save memory and disk space # and speed up some things. # [SKIP_INNODB] # skip-innodb # If set to 1, InnoDB will flush (fsync) the transaction logs to the # disk at each commit, which offers full ACID behavior. If you are # willing to compromise this safety, and you are running small # transactions, you may set this to 0 or 2 to reduce disk I/O to the # logs. Value 0 means that the log is only written to the log file and # the log file flushed to disk approximately once per second. Value 2 # means the log is written to the log file at each commit, but the log # file is only flushed to disk approximately once per second. innodb_flush_log_at_trx_commit=1 # The size of the buffer InnoDB uses for buffering log data. As soon as # it is full, InnoDB will have to flush it to disk. As it is flushed # once per second anyway, it does not make sense to have it very large # (even with long transactions). # [STATE_CHANGE]="innodb_buffers:max(innodb_buffers-innodb_additional_mem_pool_size,0)" # [STATE_CHANGE]="innodb_log_buffer_size:max(1M,innodb_buffers/100)" # [INNODB_LOG_BUFFER_SIZE]="innodb_log_buffer_size:min(16M,innodb_log_buffer_size)","USE_BYTES" innodb_log_buffer_size= # InnoDB, unlike MyISAM, uses a buffer pool to cache both indexes and # row data. The bigger you set this the less disk I/O is needed to # access data in tables. On a dedicated database server you may set this # parameter up to 80% of the machine physical memory size. Do not set it # too large, though, because competition of the physical memory may # cause paging in the operating system. Note that on 32bit systems you # might be limited to 2-3.5G of user level memory per process, so do not # set it too high. # [INNODB_BUFFER_POOL_SIZE]="innodb_buffer_pool_size:max(innodb_buffers-innodb_log_buffer_size,8M)","USE_BYTES" innodb_buffer_pool_size= # Size of each log file in a log group. You should set the combined size # of log files to about 25%-100% of your buffer pool size to avoid # unneeded buffer pool flush activity on log file overwrite. However, # note that a larger logfile size will increase the time needed for the # recovery process. # [STATE_CHANGE]="innodb_log_file_size:rnd(min(innodb_buffer_pool_size*innodb_buffer_pool_size_percentage,1G),1000)" # [INNODB_LOG_FILE_SIZE]="innodb_log_file_size:max(10M,innodb_log_file_size)","USE_BYTES" innodb_log_file_size= # Number of threads allowed inside the InnoDB kernel. The optimal value # depends highly on the application, hardware as well as the OS # scheduler properties. A too high value may lead to thread thrashing. ## originally formula was innodb_thread_concurrency=<<{:M=8,2*([CPUS]+[DISKS])}>> ## but since only one disk will be used in a standard configuration ## [DISKS] is replaced by 1 # [INNODB_THREAD_CONCURRENCY]="innodb_thread_concurrency:max(8,2*cpus+1)" innodb_thread_concurrency= # Load mysql plugins at start."plugin_x ; plugin_y". # [PLUGIN_LOAD]="plugin_load" plugin_load=