CentOS Installation Mysql-proxy

Source: Internet
Author: User
Tags lua

CentOS Installation Mysql-proxy
mysql-proxy的用处就不再说了mysql-proxy依赖libevent,lua,glib2等几个软件

So before you install it, first

yum install lua-develyum install glib2-devel

Libevent I use source code installation,
Download the
Libevent-1.4.13-stable.tar.gz

tar zvfx libevent-1.4.13-stable.tar.gz./configure进去makemake install

Now it's time to install Mysql-proxy.
On Mysql-proxy
Download source code
or first?

tar zvfx./configuremakemake checkmake installldconfig

Now we can use Mysql-proxy.

As now our database is in 192.168.1.245, native address 192.168.1.201
We can do this.

 mysql-proxy -P 192.168.1.201:3308 --proxy-backend-addresses=192.168.1.245:3306

Then the client can access 245 of the database with 192.168.1.201:3308, and the user name password is 245.

Some can only be accessed by the intranet, and not used to command line, so do

CentOS Installation Mysql-proxy

Related Article

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.