Tweaking is the motto - what an easy release PECL/mysqlnd_ms 1.4 will be! The first tweak for
the next stable version of the mysqlnd replication and load
balancing plugin solves pitfalls around charsets. String escaping
now works on lazy connection handles (default) prior to
establishing a connection to MySQL. A new
server_charset setting has been introduced for this.
The way it works also prevents you from the risk of using a
different charset for escaping than used later on for your
connection.
Lazy connections and server_charset
PECL/mysqlnd_ms is a load balancer. A users connection handle can point to different nodes of a replication cluster over time. For example, if using MySQL Replication, the connection handle may point to the master for running writes and, later on, to one of the slaves for reads. At the very moment a user opens a …
[Read more]