MySQL  8.0.12
Source Code Documentation
COM_QUERY Response

The query response packet is a meta packet which can be one of:

Note
if CLIENT_DEPRECATE_EOF is on, OK_Packet is sent instead of an actual EOF_Packet packet.
See also
cli_read_query_result, mysql_send_query, mysql_execute_command