host : config.db_host,\r
user : config.db_user,\r
password : config.db_password,\r
- database : "configure",\r
+ database : "webchat",\r
});\r
var collection = {};\r
this.Get = function(rno){\r
host : config.db_host,\r
user : config.db_user,\r
password : config.db_password,\r
- database : "configure",\r
+ database : "webchat",\r
});\r
var collection = {};\r
this.IsBaned = function(ip){\r
delete,
update on *.* to user identified by 'user';
flush privileges;
-CREATE DATABASE IF NOT EXISTS profile;
-use profile;
+CREATE DATABASE IF NOT EXISTS webchat;
+use webchat;
DROP TABLE IF EXISTS list;
CREATE TABLE list(name VARCHAR(64) NOT NULL,
age SMALLINT UNSIGNED DEFAULT 0,
etc TEXT,
PRIMARY KEY(name));
CREATE DATABASE IF NOT EXISTS configure;
-use configure;
DROP TABLE IF EXISTS ipbanlist;
CREATE TABLE ipbanlist(ip VARCHAR(64) NOT NULL,
type CHAR(1));
}\r
],function(err,result){\r
if(err != null){\r
- cb(err,null);\r
+ callback(err,null);\r
}else{\r
var next = start + limit;\r
var prev = start - limit;\r
host : config.db_host,\r
user : config.db_user,\r
password : config.db_password,\r
+ port : config.db_port,\r
database : "profile",\r
});\r
this.AuthAsync = function(name,password,cb){\r