forked from deadvey/blogger-nodejs
@@ -24,13 +24,14 @@ export function getdata(data, index=-1) {
|
||||
}
|
||||
}
|
||||
|
||||
// NOT YET WORKING!
|
||||
if (config["data_storage"] == "mysql") {
|
||||
const mysql = require('mysql');
|
||||
let con = mysql.createConnection({
|
||||
host: config.database.host,
|
||||
user: config.database.user,
|
||||
password: config.database.password,
|
||||
database: config.database.database,
|
||||
host: config.database.host,
|
||||
user: config.database.user,
|
||||
password: config.database.password,
|
||||
database: config.database.database,
|
||||
});
|
||||
|
||||
con.connect(function(err) {
|
||||
|
||||
Reference in New Issue
Block a user