I am using below code for mysql connection and trying to upload a blob data in column.
require('dotenv').config()
var mysql = require('mysql');
var pool = mysql.createPool({
host: process.env.MYSQL_HOST,
user: process.env.MYSQL_USER,
password: process.env.MYSQL_PASS,
database: process.env.MYSQL_DB,
connectionLimit: 10,
supportBigNumbers: true
});
I am on localhost and has one database, with two projects setup, if I use project1 then no error is coming but if I use project2 then it is giving the error "Got a packet bigger than 'max_allowed_packet' bytes".
I am unable to bebug what is the problem with my project2 configuration.