(12)Linux_MYSQL_5.6配置

MYSQL配置


[mysqld]

character_set_server=utf8

datadir=/data/mysql

socket=/data/mysql/mysql.sock

user=mysql

symbolic-links=0

old_passwords = 1 -- 密碼不能是原密碼

lower_case_table_names = 1 -- 忽略表的大小寫

character-set-server = utf8 -- 服務(wù)端的設(shè)置字符編碼

default-storage-engine = MYISAM? -- 默認(rèn)數(shù)據(jù)庫引擎

expire_logs_days = 30

ft_min_word_len = 4

back_log = 512

max_allowed_packet = 64M

max_connections = 1000

max_connect_errors = 100

join_buffer_size = 8M

read_buffer_size = 16M

read_rnd_buffer_size = 16M

sort_buffer_size = 8M

table_open_cache = 1000

thread_cache_size = 256

max_heap_table_size = 64M

tmp_table_size = 64M

thread_stack = 192K

thread_concurrency = 8

local-infile = 0

skip-show-database

skip-name-resolve

skip-external-locking

connect_timeout = 600

interactive_timeout = 600

wait_timeout = 600

#### MyISAM

key_buffer_size = 1024M

bulk_insert_buffer_size? =64M

myisam_sort_buffer_size = 512M

myisam_max_sort_file_size = 1G

myisam_repair_threads = 1

concurrent_insert = 2

myisam_recover

table_cache = 2048

max_allowed_packet = 32M

max_heap_table_size = 128M

sort_buffer_size = 16M

join_buffer_size= 16M

thread_cache_size = 16

thread_concurrency = 8

query_cache_size = 128M

ft_min_word_len = 8

thread_stack = 512K

transaction_isolation = REPEATABLE-READ

tmp_table_size = 128M

[mysqld_safe]

log-error=/data/mysql/mysqld.log

pid-file=/data/mysql/mysqld.pid

[client]

default-character-set = utf8

[mysql]

default-character-set = utf8

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容