Install Mycat under Windows, and simply use

Source: Internet
Author: User

Use Mycat need to install jdk1.7 above first

Reference: http://www.cnblogs.com/llhhll/p/9257764.html

1 Download the extracted directory from the official website as follows (1.6 version)

: Https://github.com/MyCATApache/Mycat-download

2 primary configuration files under the Conf folder

The main use of two server.xml and Schema.xml

Now we use MYCAT for MySQL database cluster read and write separation, data synchronization using MySQL's own binary files for master-slave synchronization

Mycat 192.168.0.1

Main Library 192.168.0.2 (write)

Reads the main library binaries from the library 192.168.0.3 (read) data synchronously (ref.: http://www.cnblogs.com/llhhll/p/9182679.html)

The Server.xml configuration is as follows:

Configure the user node to

The Schema.xml configuration is as follows:

Schema node

Datanode node

The Datahost node is as follows

Here the main library (write) is 192.168.0.2

Here from the library (read) for 192.168.0.3

Configure after normal startup bin file

Start Startup_nowrap

Test:

1 using navicat Direct Connect library mycat default port is 8066

2 authentication with Code direct connection

Connectionstring= "server=127.0.0.1;database=testliang;uid=root;pwd=123456; Pooling=true; Connection Lifetime = 120; Connection Timeout = 120; port=8066 ";

The database=testliang;uid=root;pwd=123456 here; Consistent with Mycat under Server.xml user node

Install Mycat under Windows, and simply use

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.