Skip to content

Warning: got packets out of order. Expected 1 but received 28 #528

@gajus

Description

@gajus

I am trying to create a MySQL server using node-mysql2, but I am getting the following errors:

Warning: got packets out of order. Expected 1 but received 28 Warning: got packets out of order. Expected 2 but received 29 Warning: got packets out of order. Expected 3 but received 30 Warning: got packets out of order. Expected 4 but received 31 Warning: got packets out of order. Expected 5 but received 32 [ [ TextRow { '1': 1 } ], [ { catalog: 'def', schema: '', name: '1', orgName: '', table: '', orgTable: '', characterSet: 63, columnLength: 1, columnType: 8, flags: 129, decimals: 0 } ] ] 

This is the server initialization code, https://github.com/gajus/seeql/blob/fb615713a6fe3b856c543d2dd5e27286ba3e665a/src/index.js#L135-L142.

connection.serverHandshake({ capabilityFlags: 0xffffff, characterSet: 8, connectionId: connectionId++, protocolVersion: 10, serverVersion: '5.6.10', statusFlags: 2 });

What am I missing?

Using Node.js v7.7.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions