code: function f_ihaleDunyasinaBaglan() {
  
          var connection = mysql.createConnection({
              //host: 'ihaledunyasi.net',
              host: '213.238.162.70',
              port: '3306',
              //user: 'fres',
              user: 'fmcag',
              //password: 'fres34',
              password: '1.fmc-ag',
              database: 'sbyeni'
              //charset:"UTF8_GENERAL_CI"
          });
  
          connection.connect(function (err) {
              if (err) {
                  console.error('MySql error while connecting: ' + err.stack);
                  return;
              }
  
              console.log('MySQL connected as id ' + connection.threadId);
          });
  
          return connection;
      }
docs: mysql e bağlan