MINOR: checks: mysql-check: Add support for v4.1+ authentication
authorNenad Merdanovic <nimzo@nimzo.info>
Fri, 30 May 2014 12:26:32 +0000 (14:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 11 Jun 2014 16:13:46 +0000 (18:13 +0200)
commit6639a7cf0d25a0611a49a28a2d0108882b744ebb
treeb7778259a7db86ad0fc6167fcce37849091039c1
parent1592d1e72a4a2d25a554c299ae95a3e6cad80bf1
MINOR: checks: mysql-check: Add support for v4.1+ authentication

MySQL will in stop supporting pre-4.1 authentication packets in the future
and is already giving us a hard time regarding non-silencable warnings
which are logged on each health check. Warnings look like the following:

"[Warning] Client failed to provide its character set. 'latin1' will be used
as client character set."

This patch adds basic support for post-4.1 authentication by sending the proper
authentication packet with the character set, along with the QUIT command.
doc/configuration.txt
src/cfgparse.c