|
@@ -21,6 +21,7 @@ us.mysqlconnection = function(host, database) {
|
|
|
// host: '123.58.32.151', //数据库地址
|
|
|
user: "root", //用户名
|
|
|
password: host == '127.0.0.1' ? "root" : "cocorobo", //密码
|
|
|
+ charset: 'utf8mb4_general_ci',
|
|
|
database: database, //数据库名称
|
|
|
// port: 20007 //端口
|
|
|
port: port //端口
|