mysql 최적화 my.ini 파일 설정

2015. 11. 22. 17:38IT, 인터넷 트랜드/웹제작팁&테크

[mysqld]
datadir=/home/mysql/
tmpdir=/home/mysqltmp
#max_connections = 175 #was 175
max_connections = 80
#max_connect_errors = 350 #was 250
max_connect_errors = 250
safe-show-database
skip-locking
key_buffer = 1024M # was 128M
max_allowed_packet = 6M
myisam_sort_buffer_size = 64M

#old settings, for 900 ish max maxconn
#sort_buffer_size = 32M
#read_buffer_size = 32M
#read_rnd_buffer_size = 32M

sort_buffer_size = 5M
read_buffer_size = 5M
read_rnd_buffer_size = 5M

query_cache_size= 1024M
query_cache_limit= 16M
max_heap_table_size = 128M
tmp_table_size = 128M
thread_concurrency = 16
wait_timeout = 10
innodb_file_per_table
innodb_log_file_size = 10485760
open_files_limit = 8192
low_priority_updates = 1 
#log_slow_queries = /var/log/mysql_slow.log
#log_queries_not_using_indexes = 1
#slow_queries_log_file = /var/log/mysql_slow.log
memory_limit = 64M 
# who set these? these are NOT memory settings, but rather integer settings.
#table_cache = 1024M
#thread_cache_size = 8M

table_cache = 512
thread_cache_size = 8

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

[myisamchk]
key_buffer = 128M
sort_buffer_size = 128M
read_buffer = 2M
write_buffer = 2M

Autoset 최적화 my.ini


[client]

port=3306


[mysql]

default-character-set=utf8


[mysqld]

port=3306

basedir=C:/AutoSet8/Server/MySQL5/

datadir=C:/AutoSet8/Server/MySQL5/Data/

init_connect=SET NAMES utf8

character_set_server=utf8

collation_server=utf8_general_ci

socket=C:/AutoSet8/Server/temp/mysql.sock

max_connect_errors = 250

key_buffer=1024M

max_allowed_packet=6M

character-set-server=utf8

default-storage-engine=MyISAM

sql-mode="NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"

max_connections=80

query_cache_size=1024M

query_cache_limit=16M

tmp_table_size=128M

thread_cache_size=32M

myisam_max_sort_file_size=64M

myisam_sort_buffer_size=64M

key_buffer_size=5M

read_buffer_size=5M

read_rnd_buffer_size=5M

sort_buffer_size=5M

thread_concurrency = 16

wait_timeout = 10

innodb_data_home_dir="C:/AutoSet8/Server/MySQL5/Data/"

innodb_flush_log_at_trx_commit=1

innodb_log_buffer_size=1M

innodb_buffer_pool_size=16M

innodb_log_file_size=10M

innodb_thread_concurrency=8


[mysqldump]

max_allowed_packet = 16M

[mysql]

no-auto-rehash


[isamchk]

key_buffer = 128M

sort_buffer_size = 128M

read_buffer = 2M

write_buffer = 2M


[myisamchk]

key_buffer = 128M

sort_buffer_size = 128M

read_buffer = 2M

write_buffer = 2M




📌 블로그 면책조항

본 블로그의 모든 콘텐츠는 일반적인 정보 제공을 목적으로 하며, 전문적인 법률, 의료, 금융 조언을 대체하지 않습니다. 제공되는 정보의 정확성과 최신성을 위해 노력하고 있지만, 일부 내용이 부정확하거나 누락될 수 있으며 이에 대한 책임을 지지 않습니다. 또한 외부 링크의 정보와 서비스 신뢰성을 보장하지 않으며, 이를 이용해 발생한 손해에 대해서도 책임지지 않습니다. 본 블로그의 모든 콘텐츠는 저작권법의 보호를 받으며 무단 복제나 상업적 이용은 금지되고, 이용자의 모든 행위는 본인의 책임 하에 이루어져야 합니다. 본 면책조항은 사전 공지 없이 변경될 수 있음을 알려드립니다.

📌 Google Adsense 광고 고지

본 블로그는 원활한 서비스 제공 및 운영을 위해 Google Adsense를 통한 광고를 게재하고 있습니다. Google을 포함한 제3자 광고 제공업체는 쿠키를 사용하여 사용자의 이전 방문 기록에 기반한 광고를 표시할 수 있습니다. Google의 쿠키 사용으로 인해 사용자는 본 블로그 및 다른 사이트 방문 기록을 기반으로 보다 개인화된 광고를 제공받게 됩니다. 사용자는 Google 광고 설정에서 맞춤 광고를 거부하거나 www.aboutads.info에서 제3자 쿠키 사용을 차단할 수 있습니다. 본 고지는 Google Adsense 프로그램 정책과 개인정보 보호를 위해 안내드립니다.