亚洲激情专区-91九色丨porny丨老师-久久久久久久女国产乱让韩-国产精品午夜小视频观看

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

mysql配置文件參數簡析

發布時間:2020-04-26 13:54:41 來源:億速云 閱讀:225 作者:三月 欄目:MySQL數據庫

下文內容主要給大家帶來mysql配置文件參數簡析,這里所講到的知識,與書籍略有不同,都是億速云專業技術人員在與用戶接觸過程中,總結出來的,具有一定的經驗分享價值,希望給廣大讀者帶來幫助。

今晚要創建十幾套mysql數據庫,貼一個mysql配置文件參數供參考:

cat /etc/my.cnf
[mysql]
#CLIENT #
port                           = 3307
socket                         = /data/mysql_3307/data/mysql.sock
default-character-set          = utf8
#
[mysqld]
#
port                           = 3307
# GENERAL #
user                           = mysql
default-storage-engine         = InnoDB
socket                         = /data/mysql_3307/data/mysql.sock
pid-file                       = /data/mysql_3307/data/mysql.pid
character_set_server           = utf8
#
# MyISAM #
key-buffer-size                = 32M
myisam-recover-options         = FORCE,BACKUP
#
# SAFETY #
max-connections                = 100000
max-allowed-packet             = 256M
max-connect-errors             = 1000000
skip-name-resolve
sysdate-is-now                 = 1
lower_case_table_names         = 1
explicit_defaults_for_timestamp = 1
symbolic-links                 = 0
#
# DATA STORAGE #
basedir                        = /usr/local/mysql
datadir                        = /data/mysql_3307/data
#
# BINARY LOGGING #
server-id                      = 56100
log-bin                        = /data/mysql_3307/data/mysql-bin
expire-logs-days               = 14
sync-binlog                    = 1
log_bin_trust_function_creators  = 1
transaction_isolation = READ-COMMITTED
mysql配置文件參數簡析
# GITD MODE  #
gtid_mode                      = ON
enforce-gtid-consistency       = 1
binlog_cache_size              = 4M
max_binlog_size                = 1G
max_binlog_cache_size          = 2G
#
# REPLICATION #
skip-slave-start               = 0
relay-log                      = /data/mysql_3307/data/relay-bin
slave-net-timeout              = 60
sync-master-info               = 0
sync-relay-log                 = 0
sync-relay-log-info            = 0
slave_pending_jobs_size_max    = 256M
binlog_group_commit_sync_delay = 100000


#
#rpl_semi_sync_master_enabled=1
#rpl_semi_sync_master_timeout=10000# 表示10 second
#rpl_semi_sync_slave_enabled=1
#
slave-parallel-type            = LOGICAL_CLOCK
slave-parallel-workers         = 24
master_info_repository         = TABLE
relay_log_info_repository      = TABLE
relay_log_recovery             = ON
# CACHES AND LIMITS #
tmp-table-size                 = 32M
max-heap-table-size            = 32M
query-cache-type               = 0
query-cache-size               = 0
thread-cache-size              = 300
open-files-limit               = 65535
table-definition-cache         = 4096
table-open-cache               = 4096
#
# INNODB #
innodb-flush-method            = O_DIRECT
innodb-log-files-in-group      = 5
innodb-log-file-size           = 2048M
innodb-flush-log-at-trx-commit = 1
innodb-file-per-table          = 1
innodb-buffer-pool-size        = 300G
innodb_io_capacity             = 10000
innodb_io_capacity_max         = 20000
innodb_write_io_threads        = 16
innodb_read_io_threads         = 16
innodb_flush_neighbors         = 0
innodb_buffer_pool_instances   = 16
innodb_max_dirty_pages_pct     = 75

# LOGGING #
log-error                      = /logs/mysql_3307/mysql-error.log
log_timestamps                 = SYSTEM
log-queries-not-using-indexes  = 0
slow-query-log                 = 1
slow-query-log-file            = /logs/mysql_3307/mysql-slow.log
long_query_time = 1
#
[mysqladmin]
port                           = 3307
socket                         = /data/mysql_3307/data/mysql.sock

[mysqldump]
port                           = 3307
socket                         = /data/mysql_3307/data/mysql.sock


#
[xtrabackup]
port                           = 3307
socket                         = /data/mysql_3307/data/mysql.sock

[mysqlbackup]
port                           = 3307
socket                         = /data/mysql_3307/data/mysql.sock

對于以上關于mysql配置文件參數簡析,如果大家還有更多需要了解的可以持續關注我們億速云的行業推新,如需獲取專業解答,可在官網聯系售前售后的,希望該文章可給大家帶來一定的知識更新。

 



向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

萝北县| 调兵山市| 白水县| 会理县| 股票| 根河市| 吉安县| 新余市| 修水县| 绥中县| 志丹县| 廉江市| 开原市| 青神县| 淮南市| 隆德县| 巴东县| 健康| 广东省| 萨嘎县| 永泰县| 临夏县| 苏尼特左旗| 沛县| 内黄县| 六枝特区| 临漳县| 钟祥市| 万盛区| 潼南县| 沅陵县| 龙门县| 望城县| 五大连池市| 吉首市| 沭阳县| 两当县| 宁明县| 梅河口市| 长宁区| 江达县|