Package com.mysql.jdbc

Examples of com.mysql.jdbc.ReplicationDriver.connect()


    // Looks like a normal MySQL JDBC url, with a
    // comma-separated list of hosts, the first
    // being the 'master', the rest being any number
    // of slaves that the driver will load balance against
    //
    conn = driver.connect(url, props);
  }

  static void testMasterSlaves() throws Exception {
    //
    // Perform read/write work on the master
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.