Environment: 192.168.100.210
192.168.100.104
192.168.100.208
192.168.100.106
Description: 210,104 as MySQL database.
theAs Mysql-proxy.
106 as a test machine.
Related Software downloads:
Lua
www.lua.org
Mysql-proxy
http://mysql.cdpa.nsysu.edu.
Build a MySQL proxy server to implement read/write splitting + Master/slave synchronization proxy server
Lab requirements:
1. configure two MySQL servers (192.168.100.2, 192.168.100.3) and one proxy server (192.168.100.1) to implement read/write
Ubuntu 9.04InstallMysql Proxy LuaIs the content to be introduced in this article, mainly to understandMysql ProxyInUbuntu 9.04The installation environment under and has passed the test. For details, see this article.
Install mysql
1,
Construction of experimental Environment:Mysql-proxy 192.168.1.163Mysql-master 192.168.1.164 (Master)Mysql-slave 192.168.1.162 (from)Configuration: Mysql-proxy 192.168.1.163#yum Install Lua-yLua-5.1.4-4.1.el6.x86_64 (most of which are installed by
Linux5u3Compile and installMySQL Proxy0.8.1 is the content to be introduced in this article. It mainly records ENTERPRISELINUX5u3Compile and install the source code in a versionMySQL ProxyStep 0.8.
MySQL ProxyIs an application tool that provides
MySQL Proxy LuaThe installation configuration is described in this article.MySQL ProxyThe installation of the binary version of is relatively simple. You do not need to talk about it. The following describes how to install the source code:
Install
centos6.4 Minimum SystemInstall the build environment: yum-y Groupinstall "Development Tools" "Server Platform Development"Since Mysql-proxy is a LUA-based script, you should install LUA before installing Mysql-proxy, which is a
Introduction to MySQL Proxy and personal experience I received an email from Mysql AB. I was very excited when I saw the Mysql Proxy.
Because I was working on a project, I needed to read and write a mysql database deployed on the telecom server at
Not long ago, I conducted an experiment on MySQL read/write splitting. I also referred to a lot of materials. thank you for providing the materials.
Environment: 192.168.100.210192.168.100.104192.168.100.208192.168.100.106
Note: 210,104 is
650) this.width=650; "src=" Http://note.youdao.com/yws/res/20877/3864DBFB8D264513BA966AF24160FCE4 "alt=" Qq20150726194151.png "/> static Detach: Writes the server address directly to the program Advantages: Disadvantages:Dynamic separation: Read
Using agent software Mysql-proxy to realize MySQL read-write separationExperiment:172.16.1.10Client request Mysql-proxy, judge whether to write or readEstablish two connectionsis a remote connection to grant permission to a remote connection>use DB;>
Environment: 192.168.100.210192.168.100.104192.168.100.208192.168.100.106Note: 210,104 is used as a mysql database.208 as mysql-proxy.106 as the testing machine.Download related
Use MySQL to transfer read-write requests to master-slave server.Install MySQL ProxyMySQL Proxy binary plate is very convenient, download after decompression is used.The extracted directory is: $mysql-proxy_installed_dir (here/usr/local/mysql-proxy)
I. Introduction of Mysql-proxyMysql-proxy is MySQL's official MySQL middleware service, which provides access to several mysql-client upstream and several mysql-server to the backend.It uses the MySQL protocol, and any upstream that uses
Using agent software Mysql-proxy to realize MySQL read-write separationExperiment:172.16.1.10Client request Mysql-proxy, judge whether to write or readEstablish two connectionsis a remote connection to grant permission to a remote connection>use DB;>
#!/bin/bash# #chkconfig: 2345 94 06#. /etc/rc.d/init.d/functions# Load Script configuration file, provide variable value if [ -e /usr/mysql-proxy.conf ] ; then. /usr/mysql-proxy.conffi# Check to see if Mysql-proxy software is installed if ! ' cd /
MySQL Proxy Server Setup (read/write separation)Lab Environment:Physical connection between all hosts is normalthe database service on the 2 database server is functioning correctly, and a library with the same name as the same table is established
Common reading and Writing methodsInternal implementation based on program codeSelecting categories in code according to select, insert, which is often used in production, is the most efficient, but cumbersome for developers. Architecture cannot be
Mysql-mmm is the MySQL master Replication Manager that implements the following functions:High Availability ( VIP Floating technology similar to keepalived)Only one database write operation is provided at the same time to ensure database consistency.
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.