-
Notifications
You must be signed in to change notification settings - Fork 300
Closed
Description
var express =require('express');
var mysql =require('mysql');
var app =express();
var connection =mysql.createConnection({
host:'localhost',
user:'root',
password:'',
database:'piwikdemo'
});
connection.connect(function(error){
if(error){
console.log(error);
}else{
console.log('Connected');
}
});For other than 'test' and 'piwikdemo' script is showing following error
{ [Error: ER_BAD_DB_ERROR: Unknown database 'books']
code: 'ER_BAD_DB_ERROR',
errno: 1049,
sqlState: '42000',
fatal: true }
Please help
vanduc1102 and komikat
Metadata
Metadata
Assignees
Labels
No labels