# Example MySQL config file for small systems.
#數(shù)據(jù)庫最小系統(tǒng)配置文件樣例
發(fā)展壯大離不開廣大客戶長期以來的信賴與支持,我們將始終秉承“誠信為本、服務(wù)至上”的服務(wù)理念,堅持“二合一”的優(yōu)良服務(wù)模式,真誠服務(wù)每家企業(yè),認真做好每個細節(jié),不斷完善自我,成就企業(yè),實現(xiàn)共贏。行業(yè)涉及成都陽臺護欄等,在重慶網(wǎng)站建設(shè)公司、營銷型網(wǎng)站建設(shè)、WAP手機網(wǎng)站、VI設(shè)計、軟件開發(fā)等項目上具有豐富的設(shè)計經(jīng)驗。
# This is for a system with little memory (<= 64M) where MySQL is only used # from time to time and it's important that the mysqld daemon # doesn't use much resources.
#這個配置時為內(nèi)存比較小的系統(tǒng)且數(shù)據(jù)庫不連續(xù)使用的系統(tǒng)設(shè)置的,
#最重要的時它的后臺服務(wù)幾乎不會使用太多資源
# MySQL programs look for option files in a set of # locations which depend on the deployment platform. # You can copy this option file to one of those # locations. For information about these locations, see: # http://dev.mysql.com/doc/mysql/en/option-files.html
#數(shù)據(jù)庫程序?qū)ふ艺{(diào)度平臺可以調(diào)度的一些位置的選項文件。
#你可以把選項文件復(fù)制到這些位置
# In this file, you can use all long options that a program supports. # If you want to know which options a program supports, run the program # with the "--help" option.
#在這個文件中,你可以使用程序支持的所有長選項。
#如果你想只知道程序支持哪個選項,運行程序查找?guī)椭?/p>
# The following options will be passed to all MySQL clients
#下列選項應(yīng)用到數(shù)據(jù)庫的客戶端
[client] #password= your_password #密碼 port= 3306 #端口 socket= /tmp/mysql.sock #socket位置
# Here follows entries for some specific programs
#接下來的條目是為一些特別程序準備的
# The MySQL server [mysqld] port= 3306 #端口 socket= /tmp/mysql.sock #socket位置 skip-external-locking #跳過擴展鎖 key_buffer_size = 16K #鍵緩存是 16K max_allowed_packet = 1M #允許最大信息包 1M table_open_cache = 4 #打開表緩存 4 sort_buffer_size = 64K #排序緩存 64K read_buffer_size = 256K #讀緩存區(qū) 256K read_rnd_buffer_size = 256K # net_buffer_length = 2K #網(wǎng)絡(luò)緩存長度2K thread_stack = 128K #線程堆 128K
# Don't listen on a TCP/IP port at all. This can be a security enhancement, # if all processes that need to connect to mysqld run on the same host. # All interaction with mysqld must be made via Unix sockets or named pipes. # Note that using this option without enabling named pipes on Windows # (using the "enable-named-pipe" option) will render mysqld useless! # #skip-networking server-id= 1
#不要一直監(jiān)聽一個tcp/ip端口。如果所有進程需要連接到相同主機數(shù)據(jù)庫后臺,那么這個是安全加強項。
#和數(shù)據(jù)庫后臺的所有交互必須經(jīng)過Unix code或命名管道。
#注意如果windows沒有激活相應(yīng)選項(enable-named-pipe),這個選項是無效的。
# Uncomment the following if you want to log updates #日志更新 #log-bin=mysql-bin
# binary logging format - mixed recommended #binlog_format=mixed
# 二進制混合格式日志記錄
# Causes updates to non-transactional engines using statement format to be # written directly to binary log. Before using this option make sure that # there are no dependencies between transactional and non-transactional # tables such as in the statement INSERT INTO t_myisam SELECT * FROM # t_innodb; otherwise, slaves may diverge from the master. #binlog_direct_non_transactional_updates=TRUE
#更新到非事務(wù)引擎使用說明格式寫到二進制日志中,
#使用這個選項之前確保依賴在事務(wù)和非事務(wù)表
#例如:插入數(shù)據(jù)。否則,備機和主機背道而馳。
# Uncomment the following if you are using InnoDB tables #是否使用Innodb表 #innodb_data_home_dir = /usr/local/mysql/data #innodb_data_file_path = ibdata1:10M:autoextend #innodb_log_group_home_dir = /usr/local/mysql/data # You can set .._buffer_pool_size up to 50 - 80 % # of RAM but beware of setting memory usage too high #innodb_buffer_pool_size = 16M #innodb_additional_mem_pool_size = 2M # Set .._log_file_size to 25 % of buffer pool size #innodb_log_file_size = 5M #innodb_log_buffer_size = 8M #innodb_flush_log_at_trx_commit = 1 #innodb_lock_wait_timeout = 50
[mysqldump] #備份 quick max_allowed_packet = 16M
[mysql] #no-auto-rehash
#命令不自動補全 http://blog.51yip.com/mysql/1056.html
auto-rehash
#修改為自動補全 只能提示表名和表里面字段名
# Remove the next comment character if you are not familiar with SQL #安全更新 #safe-updates
[myisamchk]
#獲得有關(guān)你的數(shù)據(jù)庫表的統(tǒng)計信息或檢查、修復(fù)、優(yōu)化他們 http://blog.csdn.net/wyzxg/article/details/7303486
key_buffer_size = 8M
sort_buffer_size = 8M
[mysqlhotcopy]
#熱備 https://www.centos.bz/2011/11/backup-mysql-database-with-mysqlhotcopy/
interactive-timeout