question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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.

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:6
  • Comments:28 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
fjeddycommented, Jul 1, 2021

Experiencing the same issue.

2reactions
karlosgaldinocommented, Aug 18, 2021

Passei a receber esse erro hoje. Um Ano se passou e ninguém soube como resolver?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Packets out of order. Got: 1 Expected: 0 - Stack Overflow
I'm using node v12.14.1 and the npm package mysql v2.18.1. I also set the max_allowed_packet to 1G but it did not help. Here...
Read more >
Warning: got packets out of order. Expected 1 but received 28
I am trying to create a MySQL server using node-mysql2 , but I am getting the following errors: Warning: got packets out of...
Read more >
how can I fix: Packets out of order. Expected 0 received 1 ...
I installed Laravel in a shared hosting, I placed all the folders of laravel inside a folder called /site, at the same level...
Read more >
MySQL: Packets out of order error - General - Node-RED Forum
All 3 of these issues can cause the error of X expect Y packet out of order scenario. For whatever reason, mysql node...
Read more >
Mysqli warning Packets out of order. Expected 1 received 0
[2020-11-16 11:28 UTC] w2kzx80 at gmail dot com. Description: ------------ Hi Im using php 7.4.10 and i cant simply upgrade it to 7.4.12...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found