yoshinorim / mha4mysql-node

Development tree of Master High Availability Manager and tools for MySQL (MHA), Node (MySQL Server) part
http://code.google.com/p/mysql-master-ha/
GNU General Public License v2.0
398 stars 198 forks source link

New feature: Supporting "mysql --binary-mode" in 5.6.3+ #3

Closed yoshinorim closed 12 years ago

yoshinorim commented 12 years ago

See http://bugs.mysql.com/bug.php?id=33048 for details. --binary-mode is needed when you store binary data and do not escape properly (i.e. addslashes()).

In this fix, I'll implement MHA Node to use "mysql --binary-mode" if MySQL client supports(if mysql client version is 5.6.3+).

yoshinorim commented 12 years ago

https://github.com/yoshinorim/mha4mysql-node/commit/e2ddbdb5e947941b25b891d4b62f90d50c6eb94d