Amoeba realizing MySQL read-write separation

Source: Internet
Author: User

Amoeba version: 5.1.45-mysql-amoeba-proxy-2.2.0 Source distribution

Master: 192.168.204.128

From: 192.168.204.129

amoeba:192.168.204.130

Dbservers.xml file:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/1B/wKioL1SpRyKRgeu2AAHjbmOQ6IY932.jpg "style=" float: none; "title=" DbServers.xml.png "alt=" Wkiol1sprykrgeu2aahjbmoq6iy932.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/1E/wKiom1SpRmbzoqrJAAJKHWk-AzQ269.jpg "style=" float: none; "title=" DbServers.xml2.png "alt=" Wkiom1sprmbzoqrjaajkhwk-azq269.jpg "/>

Amoeba.xml file

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/1B/wKioL1SpR4eyNpUgAAF8rwy8evU205.jpg "style=" float: none; "title=" Amoeba.xml.png "alt=" Wkiol1spr4eynpugaaf8rwy8evu205.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/1E/wKiom1SpRsuTGWcsAAIQsMXowSo826.jpg "style=" float: none; "title=" Amoeba.xml2.png "alt=" Wkiom1sprsutgwcsaaiqsmxowso826.jpg "/>

Execute on the master/slave server:

Grant all on cjnew.* to [e-mail protected] ' 192.168.204.130 ' identified by ' CMYSQLJ ';

Start Amoeba:

/usr/local/amoeba/bin/amoeba start

Netstat-tnlp

:: ffff:192.168.204.130:8066

Login Amoeba:

Mysql-uroot-p-h192.168.204.130-p8066



Amoeba realizing MySQL read-write separation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.