Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs mysql connection

connection.connect(function(err) {
  if (err) {
    return console.error('error: ' + err.message);
  }

  console.log('Connected to the MySQL server.');
});
Code language: JavaScript (javascript)
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #nodejs #mysql #connection
ADD COMMENT
Topic
Name
6+2 =