<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    ivaneeo's blog

    自由的力量,自由的生活。

      BlogJava :: 首頁 :: 聯(lián)系 :: 聚合  :: 管理
      669 Posts :: 0 Stories :: 64 Comments :: 0 Trackbacks
    1.安裝mariadb on ubuntu
    http://blog.secaserver.com/2013/07/install-mariadb-galera-cluster-ubuntu/

    3 在服務(wù)器上用mysql -h 192.168.0.1 -u root -p mysql命令登錄mysql數(shù)據(jù)庫

    然后用grant命令下放權(quán)限。

    GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'root-password' WITH GRANT OPTION;

    GRANT ALL PRIVILEGES ON *.* TO root@127.0.0.1 IDENTIFIED BY 'root-password' WITH GRANT OPTION;

    GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'root-password' WITH GRANT OPTION;

    例如:
    GRANT   ALL   PRIVILEGES   ON   *.*   TO   root@'%'   identified   by   '123456'  

    注意:自己根據(jù)情況修改以上命令中的 “用戶”“ip地址”“密碼”。 

    2 安裝和配置haproxy
    option mysql-check [ user <username> ]   
    USE mysql; INSERT INTO user (Host,User) values ('<ip_of_haproxy>','<username>'); FLUSH PRIVILEGESheck

    only consists in parsing the Mysql Handshake Initialisation packet or Error packet, we don't send anything in this mode. It was reported that it can generate lockout if check is too frequent and/or if there is not enough traffic. In fact, you need in this case to check MySQL "max_connect_errors" value as if a connection is established successfully within fewer than MySQL "max_connect_errors" attempts after a previous connection was interrupted, the error count for the host is cleared to zero. If HAProxy's server get blocked, the "FLUSH HOSTS" statement is the only way to unblock it.

    配置:
    # this config needs haproxy-1.1.28 or haproxy-1.2.1 global
    log 127.0.0.1
    local0 info
    #日志相關(guān)
    log 127.0.0.1
    local1 notice
    maxconn 4096
    daemon
    #debug
    #quiet defaults
    log global mode http #option httplog option dontlognull retries 3 option redispatch maxconn 2000 contimeout 5000 clitimeout 50000 srvtimeout 50000 listen mysql bind 0.0.0.0:3333 #代理端口 mode tcp #模式 TCP option mysql-check user haproxy #mysql健康檢查 root為mysql登錄用戶名 balance roundrobin #調(diào)度算法 server mysql1 172.20.21.1:3306 weight 1 check inter 1s rise 2 fall 2 server mysql2 172.20.21.2:3306 weight 1 check inter 1s rise 2 fall 2 server mysql3 172.20.21.3:3306 weight 1 check inter 1s rise 2 fall 2 listen stats :1936 mode http stats enable stats hide-version stats realm Haproxy\ Statistics stats uri / stats auth admin:admin
    posted on 2013-12-22 02:57 ivaneeo 閱讀(1261) 評論(0)  編輯  收藏 所屬分類: GNU牛力
    主站蜘蛛池模板: 国产精品亚洲产品一区二区三区| 最近免费中文字幕mv在线电影| 国产大片线上免费看| 中国一级全黄的免费观看| 亚洲中文字幕AV每天更新| 亚洲AV福利天堂一区二区三| 免费看片A级毛片免费看| 88xx成人永久免费观看| 在线观看免费大黄网站| a级毛片在线免费看| xxxx日本在线播放免费不卡| 亚洲三级中文字幕| 亚洲人成网www| 国产精品久久久亚洲| 亚洲综合精品香蕉久久网| 免费大黄网站在线观| 99久久免费国产精品特黄| 波多野结衣中文字幕免费视频| aaa毛片免费观看| 抽搐一进一出gif免费视频| 精品无码无人网站免费视频| 免费少妇a级毛片| 在线综合亚洲中文精品| 国产亚洲精品影视在线| 亚洲精品无码久久久久A片苍井空| 亚洲伊人久久大香线蕉AV| 国产真人无码作爱免费视频| 欧洲精品免费一区二区三区| 老司机亚洲精品影院无码| 亚洲视频中文字幕在线| 亚洲人成色在线观看| 中文字幕在线观看免费视频| 久久伊人久久亚洲综合| a级毛片免费网站| 亚洲精品在线免费观看| 国产免费久久精品久久久| 亚洲人成色77777| 亚洲AV无码一区二区三区性色| 亚洲黄片手机免费观看| 亚洲色偷偷综合亚洲AV伊人| 免费国产a理论片|