title: Node js Mysql query execute
body: <p>I am using node.js to connect to Mysql database. I succeded in making the connection. However, several attempts to insert data have failed.</p>
  
  <p>Can somoeone please look at the code of the js file executed in node ?</p>
  
  <p>This is the js file to execute by node.js:</p>
  
  <pre><code>let mysql = require("mysql")
  
  connection = mysql.createConnection({
      host     : 'localhost',
      user     : 'daniel',
      password : '',
      database : 'company',
  });
  
  connection.connect()
  
  connection.query('INSERT INTO Employees (emp_no,emp_name,salary,reports_to)  VALUES  (1, "Manos", 1500, "Director")');
  </code></pre>
  
  <p>And this is the error I get:</p>
  
  <pre><code>node mysqlconnection3.js
  /root/nodejs/mysqlconnection3.js:1
  (function (exports, require, module, __filename, __dirname) { \// Read the docs at https://www.npmjs.com/package/mysql.
                                                                ^
  
  SyntaxError: Invalid or unexpected token
      at createScript (vm.js:80:10)
      at Object.runInThisContext (vm.js:139:10)
      at Module._compile (module.js:616:28)
      at Object.Module._extensions..js (module.js:663:10)
      at Module.load (module.js:565:32)
      at tryModuleLoad (module.js:505:12)
      at Function.Module._load (module.js:497:3)
      at Function.Module.runMain (module.js:693:10)
      at startup (bootstrap_node.js:188:16)
      at bootstrap_node.js:609:3
  </code></pre>