Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The network protocol of mysql LOAD DATA is here:

Image RemovedImage Added

  1. Client execute COM_QUERY to execute load data syntax
  2. Server response with 0xFB + filename
  3. Client sends all the bytes of file one by one package.
  4. At the end of file body transfer, client will send an empty package.
  5. When the server finishes loading data, it will send an OK package to client.

...