...
The network protocol of mysql LOAD DATA is here:
- Client execute
COM_QUERY
to execute load data syntax - Server response with
0xFB + filename
- Client sends all the bytes of file one by one package.
- At the end of file body transfer, client will send an empty package.
- When the server finishes loading data, it will send an OK package to client.
...