"create database " + db + "; grant all on "+db+".* to "+user+"@localhost identified by '"+pwd+"'";

db:数据库名   user:用户名  pwd :密码