OSDN Git Service

メッセージの文字化けを修正した
authorkonekoneko <jbh03215@hotmail.co.jp>
Sun, 5 May 2013 05:46:49 +0000 (14:46 +0900)
committerkonekoneko <jbh03215@hotmail.co.jp>
Sun, 5 May 2013 05:46:49 +0000 (14:46 +0900)
init.js
init.sql

diff --git a/init.js b/init.js
index a94e78b..d8729e5 100644 (file)
--- a/init.js
+++ b/init.js
@@ -1,4 +1,4 @@
-var util = require("util");
+var util = require("util");
 var config = require("./configure.js");
 var async = require("async");
 
@@ -14,33 +14,33 @@ var pool = new MySQLPool({
 if("name_hash" in config.alias)
 {
        if(config.alias["name_hash"].type != "unsignednumber")
-               throw "name_hash???unsignednumber??????????";
+               throw "name_hashの型はunsignednumberでなければなりません";
 }else{
-       throw "name_hash?????????";
+       throw "name_hashが存在しません";
 }
 
 if("name" in config.alias)
 {
        if(config.alias["name"].type != "text")
-               throw "name???text??????????";
+               throw "nameの型はtextでなければなりません";
 }else{
-       throw "name?????????";
+       throw "nameが存在しません";
 }
 
 if("password" in config.alias)
 {
        if(config.alias["password"].type != "password")
-               throw "name???password??????????";
+               throw "nameの型はpasswordでなければなりません";
 }else{
-       throw "password?????????";
+       throw "passwordが存在しません";
 }
 
 if("lastmodified" in config.alias)
 {
        if(config.alias["lastmodified"].type != "datetime")
-               throw "lastmodified???text??????????";
+               throw "lastmodifiedの型はtextでなければなりません";
 }else{
-       throw "lastmodified?????????";
+       throw "lastmodifiedが存在しません";
 }
 
 async.waterfall([
index 3d2bd2f..e41a128 100644 (file)
--- a/init.sql
+++ b/init.sql
@@ -1,6 +1,8 @@
 grant select,
        insert,
        delete,
+       create,
+       drop,
        update on *.* to user identified by 'user';
 flush privileges;
 CREATE DATABASE IF NOT EXISTS webchat DEFAULT CHARSET=utf8;