Install mysql-proxy in yum in centos

Source: Internet
Author: User

Install mysql-proxy in yum in centos

Install mysql-proxy on centos 
Mysql-proxy is useless. mysql-proxy depends on libevent, lua, glib2, and other software.

So before installation

Yum install lua-develyum install glib2-devel

Libevent I use source code to install,
Downloaded
Libevent-1.4.13-stable.tar.gz

Tar zvfx libevent-1.4.13-stable.tar.gz./configure in makemake install

Now you can install mysql-proxy.
Mysql-proxy
Download source code
Or first

Tar zvfx./configuremakemake checkmake installldconfig

Now you can use mysql-proxy.

For example, our database is at 192.168.1.245 and the local address is 192.168.1.201.
We can do this.

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

Connect the client to 192.168.1.201: 3308 to access the database of 245. the user name and password are 245.

Some of them can only be accessed through the Intranet and are not used to command line operations.

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.