Thanks to visit codestin.com Credit goes to dev.mysql.com
MySQL supports the use of protocol trace plugins: client-side plugins that implement tracing of communication between a client and the server that takes place using the client/server protocol.