91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

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

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

MYSQL 多實例安裝以及常見運維點

發布時間:2020-08-11 04:48:12 來源:ITPUB博客 閱讀:136 作者:vectorT 欄目:MySQL數據庫

重點:配置GNR時需要所有的GNR以[ mysqld xxx]的格式命名,否則會報找到GNR的錯誤

準備Mysqld_multi配置文件加入多實例的配置信息

指定GNR啟動實例(不要指定MYSQLD這個關鍵詞)

mysqld_multi start 3308

指定端口和SOCK文件關閉實例

mysqladmin -uroot -p123456 -P3307 -S/mydata/data2/mysql.sock shutdown

指定連接實例

mysql -uroot -p123456 -S/mydata/data2/mysql.sock

指定啟動實例

mysqld_multi start mysqld3307

如下為多實例的配置文件

[client]

#socket = /mydata/data/mysql.sock

[mysqld_multi]

log=/mydata/mysqld_multi.log

#mysqld=/usr/sbin/mysqld

user=mysql

#basedir = /usr

#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

[mysqld3306]

########basic settings########

user=mysql

server-id = 333

port = 3306

socket=/mydata/data/master1.sock

#skip-grant-tables

character_set_server=utf8

skip_name_resolve = 1

max_connections = 2000

max_connect_errors = 1000

datadir = /mydata/data

explicit_defaults_for_timestamp = 1

join_buffer_size = 134217728

tmp_table_size = 67108864

tmpdir = /tmp

lower_case_table_names=1

log_error = error.log

########replication settings########

master_info_repository = TABLE

relay_log_info_repository = TABLE

log_bin = bin.log

gtid_mode = on

enforce_gtid_consistency = 1

log_slave_updates

binlog_format = row

relay_log = relay.log

relay_log_recovery = 1

#binlog_gtid_simple_recovery = 1

slave_skip_errors = ddl_exist_errors

########innodb settings########

innodb_buffer_pool_size = 1G

innodb_buffer_pool_instances = 8

innodb_lock_wait_timeout = 50

innodb_log_file_size = 500M

innodb_purge_threads = 4

innodb_large_prefix = 1

innodb_thread_concurrency = 64

innodb_print_all_deadlocks = 1

innodb_strict_mode = 1

innodb_sort_buffer_size = 67108864

########semi sync replication settings########

#plugin_dir=/usr/local/mysql/lib/plugin

#plugin_load = "rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so"

loose_rpl_semi_sync_master_enabled = 1

loose_rpl_semi_sync_slave_enabled = 1

loose_rpl_semi_sync_master_timeout = 5000

[mysqld3307]

########basic settings########

user=mysql

server-id = 789

port = 3307

skip-grant-tables

socket=/mydata/data2/master2.sock

character_set_server=utf8

skip_name_resolve = 1

max_connections = 2000

max_connect_errors = 1000

datadir = /mydata/data2

explicit_defaults_for_timestamp = 1

join_buffer_size = 134217728

tmp_table_size = 67108864

tmpdir = /tmp

lower_case_table_names=1

log_error = error.log

########replication settings########

master_info_repository = TABLE

relay_log_info_repository = TABLE

log_bin = bin.log

gtid_mode = on

enforce_gtid_consistency = 1

log_slave_updates

binlog_format = row

relay_log = relay.log

relay_log_recovery = 1

#binlog_gtid_simple_recovery = 1

slave_skip_errors = ddl_exist_errors

########innodb settings########

innodb_buffer_pool_size = 1G

innodb_buffer_pool_instances = 8

innodb_lock_wait_timeout = 50

innodb_log_file_size = 500M

innodb_purge_threads = 4

innodb_large_prefix = 1

innodb_thread_concurrency = 64

innodb_print_all_deadlocks = 1

innodb_strict_mode = 1

innodb_sort_buffer_size = 67108864

########semi sync replication settings########

#plugin_dir=/usr/local/mysql/lib/plugin

#plugin_load = "rpl_semi_sync_master=semisync_master.so;rpl_semi_sync_slave=semisync_slave.so"

loose_rpl_semi_sync_master_enabled = 1

loose_rpl_semi_sync_slave_enabled = 1

loose_rpl_semi_sync_master_timeout = 5000


向AI問一下細節

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

AI

京山县| 桦川县| 遂川县| 迁西县| 涡阳县| 高清| 务川| 柳州市| 西乌珠穆沁旗| 黑龙江省| 五寨县| 兴安盟| 左贡县| 潮州市| 磴口县| 邵阳县| 军事| 吉安县| 富源县| 安泽县| 南陵县| 纳雍县| 山丹县| 偏关县| 武清区| 普兰店市| 固镇县| 临沭县| 吴川市| 南投县| 卓尼县| 聂拉木县| 东光县| 沙田区| 望谟县| 唐河县| 周口市| 吴桥县| 彭山县| 普兰店市| 周至县|