i havent used the node but from the example
the database property should be db
and not database
also you have used msg.Server with capital S. i believe it should be lowercase
var newmsg={};
newmsg.server={
"host":"11.1.1.228",
"port":"3306",
"username": "user",
"password": "@L8S",
"db": "test"
}
//newmsg.Password=mariadb_Password;
newmsg.topic="select id,profileName from ProfileEntity;";
//node.log("------ GET ProfileEntity mysql(req)="+newmsg.topic);
node.warn(newmsg)
return newmsg;