0
var express = require('express');
var mysql = require('mysql');
var app = express();

var connection = mysql.createConnection({
  host: 'localhost',
  user: 'your_user',
  password: 'some_secret',
  database: 'the_app_database'
});

connection.connect(function(err) {
  if (err) throw err
  console.log('You are now connected...')
});

i am new to nodejs. in my nodejs project the requre function didn't work what i do? i can't add jquery or any other thing. what is the problem why requre didnt work.can't connect to database mysql

jaydeep patel
  • 867
  • 4
  • 14

0 Answers0