Skip to content
Permalink
Browse files

Merge branch 'mysql8clientauth' into 'master'

set mysql_native_password auth plugin in mysql handshake #687

See merge request manticoresearch/dev!45
  • Loading branch information...
adriannuta committed Mar 6, 2019
2 parents 6a217f6 + b14d81f commit bd3e66e0085bc7e2e351b817dfc972fd8158fbce
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/searchd.cpp
"\x08\x82" // server capabilities low WORD; CLIENT_PROTOCOL_41 | CLIENT_CONNECT_WITH_DB | CLIENT_SECURE_CONNECTION
"\x21" // server language; let it be ut8_general_ci to make different clients happy
"\x02\x00" // server status
"\x00\x00" // server capabilities hi WORD; no CLIENT_PLUGIN_AUTH
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" // filler
"\x08\x00" // server capabilities hi WORD; CLIENT_PLUGIN_AUTH
"\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" // salts length + 10 char filler
"\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c" // salt2 (for auth, 4.1+)
"\x00"; // filler
"\x00"
"\x6d\x79\x73\x71\x6c\x5f\x6e\x61\x74\x69\x76\x65\x5f\x70\x61\x73\x73\x77\x6f\x72\x64" // auth plugin name: mysql_native_password
"\x00";

g_sMySQLVersion = hSearchd.GetStr ( "mysql_version_string", SPHINX_VERSION );
int iLen = g_sMySQLVersion.Length();

0 comments on commit bd3e66e

Please sign in to comment.
You can’t perform that action at this time.