var mysql = require('mysql');

// Create a database connection and export it from this file.
// You will need to connect with the user "root", no password,
// and to the database "chat".

var connection = mysql.createConnection({
  host: '127.0.0.1',
  user: 'root',
  password: '',
  database: 'foodQuest'
});

connection.connect();

module.exports.connection = connection;
var mysql = require('mysql');

// Create a database connection and export it from this file.
// You will need to connect with the user "root", no password,
// and to the database "chat".

var connection = mysql.createConnection({
  host: '127.0.0.1',
  user: 'root',
  password: '',
  database: 'foodQuest',
  multipleStatements: true
});

connection.connect();

module.exports.connection = connection;
Set multipleStatements to true in mysql.createConnection object
Set  multipleStatements to true in mysql.createConnection object
