Il numero intero massimo che JavaScript può rappresentare in modo sicuro è Number .MAX_SAFE_INTEGER , che è 2^53 - 1. Il tuo valore è maggiore di quello, il che causa la perdita di alcuni bit.
node-mysql ha supportBigNumbers e bigNumberStrings opzioni che analizzano BIGINT s come stringhe.
var connection = mysql.createConnection({
supportBigNumbers: true,
bigNumberStrings: true
});