MySQL Error
See original GitHub issuedatabase-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:
- Created 2 years ago
- Comments:9 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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
Your MySQL server version must be
<=5.7
Yours is5.5.62
. Please upgrade the server version of the hosting, thank you!