- mysqli class for usage with galera cluster
- includes loadbalancing
!!! for ONLY 2 Node Cluster comment in Line 126 !!! |
---|
- mysqli class for use with galera cluster Database
- also works with Standalone Database Server
- uses "random" for Load-Balancing if no host specified
- simply pass for $host an array of servers
$hosts = array("10.0.0.1", "10.0.0.2", "10.0.0.3");
$mysqli = new galera_mysqli($hosts, $user, $pass,...);
- for use of en explizit host pass the array_id to $hostindex
$hosts = array("10.0.0.1", "10.0.0.2", "10.0.0.3");
$mysqli = new galera_mysqli($hosts, $user, $pass,..., 2);
- addet magic __sleep & __wakeup methods for serialization
- addet method get_selected_db()