亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫(kù)
最近訪(fǎng)問(wèn)板塊 發(fā)新帖
查看: 3902 | 回復(fù): 3
打印 上一主題 下一主題

MariaDB多主復(fù)制問(wèn)題。。。。。。。。。。。。。。。。。 [復(fù)制鏈接]

論壇徽章:
0
跳轉(zhuǎn)到指定樓層
1 [收藏(0)] [報(bào)告]
發(fā)表于 2015-06-02 17:02 |只看該作者 |倒序?yàn)g覽
別人的狀態(tài):MariaDB [(none)]> SHOW VARIABLES LIKE 'wsrep_cluster_address';
+-----------------------+----------+
| Variable_name         | Value    |
+-----------------------+----------+
| wsrep_cluster_address | gcomm:// |
+-----------------------+----------+
1 row in set (0.00 sec)
# 如果配置了指向集群地址,上面那個(gè)參數(shù)值,應(yīng)該是你指定集群的IP地址
MariaDB [kz]> SHOW VARIABLES LIKE 'wsrep_cluster_address';
+-----------------------+----------------------------+
| Variable_name         | Value                      |
+-----------------------+----------------------------+
| wsrep_cluster_address | gcomm://192.168.1.139:4567 |
+-----------------------+----------------------------+
1 row in set (0.00 sec)
# 此參數(shù)查看是否開(kāi)啟
MariaDB [kz]> show status like 'wsrep_ready';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wsrep_ready   | ON    |
+---------------+-------+
1 row in set (0.00 sec)
# 這個(gè)查看wsrep的相關(guān)參數(shù)
MariaDB [terry]> show status like 'wsrep%';
+----------------------------+--------------------------------------+
| Variable_name              | Value                                |
+----------------------------+--------------------------------------+
| wsrep_local_state_uuid     | bb5b9e17-66c8-11e3-86ba-96854521d205 | uuid 集群唯一標(biāo)記
| wsrep_protocol_version     | 4                                    |
| wsrep_last_committed       | 16                                   | sql 提交記錄
| wsrep_replicated               | 4                                     | 隨著復(fù)制發(fā)出的次數(shù)
| wsrep_replicated_bytes      | 692                                  | 數(shù)據(jù)復(fù)制發(fā)出的字節(jié)數(shù)
| wsrep_received                 | 18                                    | 數(shù)據(jù)復(fù)制接收次數(shù)
| wsrep_received_bytes        | 3070                                 | 數(shù)據(jù)復(fù)制接收的字節(jié)數(shù)
| wsrep_local_commits         | 4                                      | 本地執(zhí)行的 sql
| wsrep_local_cert_failures    | 0                                      | 本地失敗事務(wù)
| wsrep_local_bf_aborts        | 0                                      |從執(zhí)行事務(wù)過(guò)程被本地中斷
| wsrep_local_replays           | 0                                      |
| wsrep_local_send_queue     | 0                                     | 本地發(fā)出的隊(duì)列
| wsrep_local_send_queue_avg | 0.142857                       | 隊(duì)列平均時(shí)間間隔
| wsrep_local_recv_queue     | 0                                      | 本地接收隊(duì)列
| wsrep_local_recv_queue_avg | 0.000000                        | 本地接收時(shí)間間隔
| wsrep_flow_control_paused  | 0.000000                         |
| wsrep_flow_control_sent    | 0                                      |
| wsrep_flow_control_recv    | 0                                    |
| wsrep_cert_deps_distance   | 0.000000                          | 并發(fā)數(shù)量
| wsrep_apply_oooe           | 0.000000                             |
| wsrep_apply_oool           | 0.000000                             |
| wsrep_apply_window         | 1.000000                             |
| wsrep_commit_oooe          | 0.000000                             |
| wsrep_commit_oool          | 0.000000                             |
| wsrep_commit_window        | 1.000000                             |
| wsrep_local_state          | 4                                    |
| wsrep_local_state_comment  | Synced                               |
| wsrep_cert_index_size      | 0                                    |
| wsrep_causal_reads         | 0                                    |
| wsrep_incoming_addresses   | 192.168.1.137:3306    | 連接中的數(shù)據(jù)庫(kù)
| wsrep_cluster_conf_id      | 18                                   |
| wsrep_cluster_size         | 2                                    | 集群成員個(gè)數(shù)
| wsrep_cluster_state_uuid   | bb5b9e17-66c8-11e3-86ba-96854521d205 | 集群 ID
| wsrep_cluster_status       | Primary                              | 主服務(wù)器
| wsrep_connected            | ON                                   | 當(dāng)前是否連接中
| wsrep_local_index          | 1                                    |
| wsrep_provider_name        | Galera                               |
| wsrep_provider_vendor      | Codership Oy     |
| wsrep_provider_version     | 2.7(rXXXX)                           |
| wsrep_ready                | ON                                   | 插件是否應(yīng)用中
+----------------------------+--------------------------------------+
40 rows in set (0.05 sec)













我的狀態(tài):
MariaDB [(none)]> SHOW VARIABLES LIKE 'wsrep_cluster_address';
+-----------------------+-------+
| Variable_name         | Value |
+-----------------------+-------+
| wsrep_cluster_address |       |
+-----------------------+-------+
1 row in set (0.00 sec)

MariaDB [(none)]> show status like 'wsrep_ready';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| wsrep_ready   | ON    |
+---------------+-------+
1 row in set (0.00 sec)

MariaDB [(none)]> show status like 'wsrep%';
+--------------------------+----------------------+
| Variable_name            | Value                |
+--------------------------+----------------------+
| wsrep_cluster_conf_id    | 18446744073709551615 |
| wsrep_cluster_size       | 0                    |
| wsrep_cluster_state_uuid |                      |
| wsrep_cluster_status     | Disconnected         |
| wsrep_connected          | OFF                  |
| wsrep_local_bf_aborts    | 0                    |
| wsrep_local_index        | 18446744073709551615 |
| wsrep_provider_name      |                      |
| wsrep_provider_vendor    |                      |
| wsrep_provider_version   |                      |
| wsrep_ready              | ON                   |
| wsrep_thread_count       | 0                    |
+--------------------------+----------------------+
12 rows in set (0.00 sec)



照著做的為什么會(huì)出現(xiàn)這樣。!中途沒(méi)報(bào)錯(cuò)!。!

論壇徽章:
0
2 [報(bào)告]
發(fā)表于 2015-06-02 17:03 |只看該作者
[root@client137 ~]# yum -y install MariaDB-Galera-server galera MariaDB-client
[root@client138 ~]# yum -y install MariaDB-Galera-server galera MariaDB-client
[root@client139 ~]# yum -y install MariaDB-Galera-server galera MariaDB-client
4.編輯每臺(tái)機(jī)器的hosts文件,添加如下內(nèi)容

[root@client137 ~]# vim /etc/hosts
192.168.1.137 client137.kongzhong.com  client137
192.168.1.138 client138.kongzhong.com  client138
192.168.1.139 client139.kongzhong.com  client139
# 啟動(dòng)測(cè)試一下
[root@client137 ~]# /etc/init.d/mysql start
Starting MySQL.... SUCCESS!
[root@client137 ~]# chkconfig mysql on
5.設(shè)置MariaDB的root密碼,并做安全加固

[root@client137 ~]#  /usr/bin/mysql_secure_installation
[root@client137 ~]#  /usr/bin/mysql_secure_installation
# 登陸數(shù)據(jù)庫(kù),授權(quán)用于集群同步的用戶(hù)和密碼
[root@client137 ~]# mysql -uroot -pkongzhong
mysql> GRANT USAGE ON *.* to sst@'%' IDENTIFIED BY 'sstpass123';
mysql> GRANT ALL PRIVILEGES on *.* to sst@'%';
mysql> FLUSH PRIVILEGES;
mysql> quit
# 創(chuàng)建并配置wsrep.cnf文件
[root@client137 ~]# cp /usr/share/mysql/wsrep.cnf  /etc/my.cnf.d/
[root@client137 ~]# vim /etc/my.cnf.d/wsrep.cnf
# 只需要修改如下4行:
wsrep_provider=/usr/lib64/galera/libgalera_smm.so
wsrep_cluster_address="gcomm://"
wsrep_sst_auth=sst:sstpass123
wsrep_sst_method=rsync
# 注意:
#    "gcomm://" 是特殊的地址,僅僅是Galera cluster初始化啟動(dòng)時(shí)候使用。
#    如果集群?jiǎn)?dòng)以后,我們關(guān)閉了第一個(gè)節(jié)點(diǎn),那么再次啟動(dòng)的時(shí)候必須先修改,"gcomm://"為其他節(jié)點(diǎn)的集群地址,例如wsrep_cluster_address="gcomm://192.168.1.138:4567"

論壇徽章:
0
3 [報(bào)告]
發(fā)表于 2015-06-02 17:22 |只看該作者
我用的是兩臺(tái)本機(jī)的虛擬機(jī)!且防火墻時(shí)關(guān)閉的!

論壇徽章:
0
4 [報(bào)告]
發(fā)表于 2015-06-02 17:28 |只看該作者
4567端口沒(méi)起來(lái)
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專(zhuān)區(qū)
中國(guó)互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過(guò)ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP