http://blog.csdn.net/sc9018181134/article/details/53063798
1. Go to GitHub to download Mycat
2. After the download is complete, unzip. It should be like this.
3. Configure the Environment variables
4. Next, modify several of the following configuration files in the mycat/conf
WRAPPER.CONF Red Word to modify the path of your JDK
Server.xml Below is mycat login username and password and schema root 123456 default is this can not be modified.
Schema.xml Here are the names of the tables and databases for the library. These correspond to the actual existence of MySQL tables and databases Mycat equivalent to a virtual MySQL. The tables that are distributed in DB1.DB2,DB3 are combined.
or the configuration in scheme. This is the address of the MySQL database. I am here as a local database. User name and password write MySQL.
5. Finally start Mycat to see.
Bin/startup_nowrap.bat if error = = Please refer to the authoritative guide of Mycat official website. There is a wrong handling.
The appearance of successfully succeeded.
6. Finally, the employee table is established in the database DB1.DB2 and the data is stored separately
7. Last login Mycat after connecting the MySQL connection tool such as Navicat.
The port is 8066. The user name and password are user name passwords in Server.xml.
After the successful landing. Look at the employee table. appear
You can see that the combined table illustrates the success.
Windows installation Mycat (RPM)