在线精品99_中国九九盗摄偷拍偷看_91免费版在线观看_91.app_91高清视频在线_99热最新网站

MySQL的基本配置

118次阅读
没有评论

共计 3018 个字符,预计需要花费 8 分钟才能阅读完成。

本篇内容介绍了“MySQL 的基本配置”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让丸趣 TV 小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

query_cache_size, tmp_table_size 这两个选项一定要设置!
 
# The following options will be passed to all MySQL clients
[client]
#password  = your_password
port  = 3306
socket  = /home/work//tmp/mysql.sock
 
# Here follows entries for some specific programs
 
# The MySQL server
[mysqld]
port  = 3306
bind-address = 127.0.0.1
socket  = /home/work/mysql/tmp/mysql.sock
#skip-locking
max_allowed_packet = 1M
table_open_cache = 16
sort_buffer_size = 8M
read_buffer_size = 512K
read_rnd_buffer_size = 256K
net_buffer_length = 8K
thread_stack = 128K
 
# 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 = 8M
 
# 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 = 8M
 
# 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=16M
 
# 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=16M
 
# 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
 
# Uncomment the following if you want to log updates
#log-bin=mysql-bin
 
# binary logging format – mixed recommended
#binlog_format=mixed
 
# Uncomment the following if you are using InnoDB tables
#default_storage_engine=InnoDB
 
innodb_data_home_dir = /home/work/mysql/var/
innodb_data_file_path = ibdata1:10M:autoextend
innodb_log_group_home_dir = /home/work/mysql/var/
# You can set .._buffer_pool_size up to 50 – 80 %
# of RAM but beware of setting memory usage too high
innodb_buffer_pool_size = 32M
innodb_additional_mem_pool_size = 4M
# Set .._log_file_size to 25 % of buffer pool size
innodb_log_file_size = 10M
innodb_log_buffer_size = 16M
innodb_flush_log_at_trx_commit = 1
innodb_lock_wait_timeout = 50
 
[mysqldump]
quick
max_allowed_packet = 16M
 
[mysql]
no-auto-rehash
# Remove the next comment character if you are not familiar with SQL
#safe-updates
 
[myisamchk]
key_buffer_size = 8M
sort_buffer_size = 8M
 
[mysqlhotcopy]
interactive-timeout

“MySQL 的基本配置”的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注丸趣 TV 网站,丸趣 TV 小编将为大家输出更多高质量的实用文章!

正文完
 
丸趣
版权声明:本站原创文章,由 丸趣 2023-07-28发表,共计3018字。
转载说明:除特殊说明外本站除技术相关以外文章皆由网络搜集发布,转载请注明出处。
评论(没有评论)
主站蜘蛛池模板: 亚洲av成人午夜电影在线观看 | 日韩欧美高清在线 | 国产99视频精品免费视频76 | 日本高清视频www | 欧美国产成人精品一区二区三区 | 日韩精品无码区免费专区 | 亚洲欧美日韩精品专区卡通 | 激情影院在线视频永久观看 | 国产亚洲精品综合一区 | 久久国产亚洲 | 久久精品综合国产二区 | 亚洲精品无码久久久久y | 国产精品兄妹在线观看麻豆 | 日本三级欧美三级人妇视频 | 国产日本三级 | 日本特级淫片免费看 | 99蜜桃在线观看免费视频网站 | 玩弄人妻少妇500系列网址 | 国产美女 19p爽一下 | 高清性做爰免费网站 | 久久久久久影院 | 国产亚洲福利精品一区二区 | 一级黄色免费观看 | 久久电影精品久久99久久 | 男人一进一出桶女人视频 | 变态 调教 视频 国产九色 | 女人高潮抽搐喷液30分钟视频 | 免费大黄网站在线看 | 尤物在线观看精品国产福利片 | 日韩欧美一区二区三区在线 | 国模吧双双大尺度炮交gogo | 爱久久视频 | 日本大片免a费观看视频+播放器 | 亚洲天堂激情 | av免费网址在线观看 | 久久久久99这里有精品10 | 四虎影视国产精品一区二区 | 国产成人福利在线 | 伊人久久大香线蕉影院 | 中国少妇内射xxxxⅹhd | 国产精品欧美日韩视频一区 |