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.

database-scripts.js Has a annoying error. When trying to run the bot NodeJS v16 and all the other apis working i get this error with mySQL

/home/runner/majobot-4/node_modules/mysql/lib/protocol/Parser.js:437
      throw err; // Rethrow non-MySQL errors
      ^

Error: Error: ER_PARSE_ERROR: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'JSON NOT NULL, PRIMARY KEY (`id`))' at line 1
    at Query.<anonymous> (/home/runner/majobot-4/utilities/database-scripts.js:13:17)
    at Query.<anonymous> (/home/runner/majobot-4/node_modules/mysql/lib/Connection.js:526:10)
    at Query._callback (/home/runner/majobot-4/node_modules/mysql/lib/Connection.js:488:16)
    at Query.Sequence.end (/home/runner/majobot-4/node_modules/mysql/lib/protocol/sequences/Sequence.js:83:24)
    at Query.ErrorPacket (/home/runner/majobot-4/node_modules/mysql/lib/protocol/sequences/Query.js:92:8)
    at Protocol._parsePacket (/home/runner/majobot-4/node_modules/mysql/lib/protocol/Protocol.js:291:23)
    at Parser._parsePacket (/home/runner/majobot-4/node_modules/mysql/lib/protocol/Parser.js:433:10)
    at Parser.write (/home/runner/majobot-4/node_modules/mysql/lib/protocol/Parser.js:43:10)
    at Protocol.write (/home/runner/majobot-4/node_modules/mysql/lib/protocol/Protocol.js:38:16)
    at Socket.<anonymous> (/home/runner/majobot-4/node_modules/mysql/lib/Connection.js:88:28)
exit status 1

I have switched mysql databases and i still get this error 😕

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
DaGrateBotcommented, Nov 26, 2021

MySQL Version: 8.0 Server type: MySQL Server version: 5.5.62-0ubuntu0.14.04.1 - (Ubuntu) Protocol version: 10 Apache/2.4.18 (Ubuntu) PHP version: 7.0.33-0ubuntu0.16.04.16

I meant the MYSQL server version

0reactions
Consideratedcommented, Dec 4, 2021

Your MySQL server version must be <=5.7 Yours is 5.5.62. Please upgrade the server version of the hosting, thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

2 Server Error Message Reference - MySQL :: Developer Zone
The MySQL server writes some error messages to its error log, and sends others to client programs. Each server error message includes an...
Read more >
mysql_error - Manual - PHP
Returns the error text from the last MySQL function. Errors coming back from the MySQL database backend no longer issue warnings. Instead, use...
Read more >
MySQL Error codes and messages - FromDual
MySQL Server Error Codes and Messages · MySQL Errors 1000 - 1049 · MySQL Errors 1050 - 1099 · MySQL Errors 1100 -...
Read more >
MySQL Error Codes - Brian Dunning
MySQL Error Codes. Error 1000 - SQLSTATE: HY000 (ER_HASHCHK) hashchk. Error 1001 - SQLSTATE: HY000 (ER_NISAMCHK) isamchk.
Read more >
How to Fix the MySQL 1064 Error (5 Methods) - Kinsta
Learn how to fix "the MySQL 1064 error" message once and for all. This is a syntax error, which means MySQL isn't able...
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