mysql配置文件my-small.cnf解析,汉文翻译,配置

# Example MySQL config file for small systems.

#数据库最小系统配置文件样例

# 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.

#这个配置时为内存比较小的系统且数据库不连续使用的系统设置的,

#最重要的时它的后台服务几乎不会使用太多资源

# 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

#数据库程序寻找调度平台可以调度的一些位置的选项文件。

#你可以把选项文件复制到这些位置

# 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.

#在这个文件中,你可以使用程序支持的所有长选项。

#如果你想只知道程序支持哪个选项,运行程序查找帮助

# The following options will be passed to all MySQL clients

#下列选项应用到数据库的客户端

[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       #读缓存区 256K
read_rnd_buffer_size = 256K   #
net_buffer_length = 2K        #网络缓存长度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

#不要一直监听一个tcp/ip端口。如果所有进程需要连接到相同主机数据库后台,那么这个是安全加强项。

#和数据库后台的所有交互必须经过Unix code或命名管道。

#注意如果windows没有激活相应选项(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

#更新到非事务引擎使用说明格式写到二进制日志中,

#使用这个选项之前确保依赖在事务和非事务表

#例如:插入数据。否则,备机和主机背道而驰。

# 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]

#获得有关你的数据库表的统计信息或检查、修复、优化他们 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
时间: 2024-08-03 19:46:08

mysql配置文件my-small.cnf解析,汉文翻译,配置的相关文章

17、MySQL生产环境my.cnf配置文件解析

[client] port = 3306    #端口号 socket = /ryzc/mysql/data/mysql.sock         #sock文件路径 [mysqld] port = 3306 socket = /ryzc/mysql/data/mysql.sock                   # 服务端sock文件路径 pid-file        = /ryzc/mysql/data/localhost.pid       # pid文件存放路径 datadir  

MySQL配置文件my.cnf设置

转自 http://www.blogjava.net/baoyaer/articles/209466.html 设置建议: 对于单台运行的WEB服务器,建议加上: skip-locking skip-name-resolve skip-networking 在PHP链接数据库时使用"LOCALHOST".这样MySQL 客户端库将覆盖之并尝试连接到本地套接字.( 我们可以从PHP.INI中 代码: ; Default socket name for local MySQL connec

Mysql配置文件my.cnf配置及配置参数详解

Mysql配置文件my.cnf 安装了mysql没有my.cnf文件的情况 1.可以把mysql的示例配置文件,如my-medium.cnf拷贝到/etc/my.cnf,再去修改/etc/my.cnf的配置/usr/share/doc/MySQL-server-5.5.38/my-medium.cnf(Example MySQL config file for medium systems with little memory (32M - 64M) ) 可以通过命令:find / -name 

Linux中MySQL配置文件my.cnf参数优化

MySQL参数优化这东西不好好研究还是比较难懂的,其实不光是MySQL,大部分程序的参数优化,是很复杂的.MySQL的参数优化也不例外,对于不同的需求,还有硬件的配置,优化不可能又最优选择,只能慢慢的进行优化,需要不断的调试,才能达到不同环境的最优选择. 首先介绍一下MySQL配置文件中不同模块 [client] MySQL客户端应用模块,只有MySQL附带的客户端应用程序保证可以读取此模块下的内容. [mysqld] MySQL服务端应用模块 [client] port = 3306 sock

mysql配置文件my.cnf整理

随时修改: 1 [mysqld] 2 #basedir= 3 datadir=/var/lib/mysql 4 #mysql.default_port=3306 5 #mysql.default_socket=/tmp/mysql.sock 6 socket=/var/lib/mysql/mysql.sock 7 #socket=/tmp/mysql.sock 8 user=mysql 9 # Disabling symbolic-links is recommended to prevent

mysql配置文件my.cnf详解

调整MySQL运行参数,修改/etc/my.cnf文件调整mysql运行参数重启MySQL后生效,在MySQL4版本以后,一部分内部变量可以在MySQL运行时设置,不过重启MySQL就失效了. mysqld程序--目录和文件basedir      = path          # 使用给定目录作为根目录(安装目录).datadir      = path          # 从给定目录读取数据库文件.pid-file     = filename      # 为mysqld程序指定一个存

MySQL 配置文件my.cnf

转载: MySQL配置文件my.cnf 详解: #BEGIN CONFIG INFO#DESCR: 4GB RAM, 只使用InnoDB, ACID, 少量的连接, 队列负载大#TYPE: SYSTEM#END CONFIG INFO ## 此mysql配置文件例子针对4G内存. # 主要使用INNODB#处理复杂队列并且连接数量较少的mysql服务器## 将此文件复制到/etc/my.cnf 作为全局设置,# mysql-data-dir/my.cnf 作为服务器指定设置# (@[email 

MySQL配置文件my.cnf参数优化和中文详解

Mysql参数优化对于新手来讲,是比较难懂的东西,其实这个参数优化,是个很复杂的东西,对于不同的网站,及其在线量,访问量,帖子数量,网络情况,以及机器硬件配置都有关系,优化不可能一次性完成,需要不断的观察以及调试,才有可能得到最佳效果. [client]port = 3306socket = /tmp/mysql.sock [mysqld]port = 3306socket = /tmp/mysql.sock basedir = /usr/local/mysqldatadir = /data/m

mysql配置文件-my-innodb-heavy-4G.cnf中文注释

#BEGIN CONFIG INFO #DESCR: 4GB RAM, InnoDB only, ACID, few connections, heavy queries #TYPE: SYSTEM #END CONFIG INFO # # This is a MySQL example config file for systems with 4GB of memory # running mostly MySQL using InnoDB only tables and performing

MySQL配置文件mysql.ini参数详解、MySQL性能优化

MySQL配置文件mysql.ini参数详解.MySQL性能优化 my.ini(Linux系统下是my.cnf),当mysql服务器启动时它会读取这个文件,设置相关的运行环境参数. my.ini分为两块:Client Section和Server Section.   Client Section用来配置MySQL客户端参数.   要查看配置参数可以用下面的命令: show variables like '%innodb%'; # 查看innodb相关配置参数 show status like