[Tsung] Error: 1043 08S01 Bad handshake

赵绪 denofiend at gmail.com
Mon Nov 11 12:24:33 CET 2013


it is work that password is empty in tsung.xml config file.

<mysql type="authenticate" database="test" username="test" password=""/>

In ts_mysql.erl source code, make_auth(User, "", Database, _Salt)  function
is called.

make_auth(User, "", Database, _Salt) ->
    Caps = ?LONG_PASSWORD bor ?LONG_FLAG bor ?PROTOCOL_41 bor ?TRANSACTIONS
            bor ?SECURE_CONNECTION bor ?CONNECT_WITH_DB,
    Maxsize = ?MAX_PACKET_SIZE,
    UserB = list_to_binary(User),
    DatabaseB = list_to_binary(Database),
    binary_to_list(<<Caps:32/little, Maxsize:32/little, 8:8,
0:23/integer-unit:8,
    UserB/binary, 0:8, 0:8, DatabaseB/binary>>);

but if you add password, like:

<mysql type="authenticate" database="test" username="test"
password="123456"/>

the make_auth(User, Password, Database, Salt) function is called.

got Error: 1043 08S01 Bad handshake error aggion, no matter PASSWORD,
OLD_PASSWORD fuction in mysql.

(
https://dev.mysql.com/doc/refman/5.5/en/encryption-functions.html#function_old-password
,
https://dev.mysql.com/doc/refman/5.5/en/password-hashing.html).




2013/11/11 Zhihui Jiao <jzhihui521 at gmail.com>

>
> 在 2013年11月11日,下午5:09,赵绪 <denofiend at gmail.com> 写道:
>
>
> =INFO REPORT==== 11-Nov-2013::16:56:21 ===
>             ts_mysql:(7:<0.97.0>) Parsing> full packet
>
> =INFO REPORT==== 11-Nov-2013::16:56:21 ===
>             ts_mysql:(4:<0.97.0>) Error: 1043 08S01 Bad handshake
>
> hot to slove this problem?
>
>
> Maybe there is something wrong with the ts_mysql plugin when doing the
> handshake.
> Need someone who familiar with handshake of mysql to fix it, or you can
> work on you own. :D
>
> Zhihui
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.process-one.net/pipermail/tsung-users/attachments/20131111/ad2f70b3/attachment.html>


More information about the Tsung-users mailing list