# Parameter: required
# Value: IP address or DNS name
# Default: localhost
- dbhost = localhost
+ server = localhost
# Database name
# Parameter: required
# Value: any, supported by database
# Default: stg
- dbname = stg
+ database = stg
# Database username
# Parameter: required
# Value: any, supported by database
# Default: stg
- dbuser = stg
+ user = stg
# Database password
# Parameter: required
# Value: any, supported by database
# Default: 123456
- rootdbpass = 123456
-</StoreModule>
\ No newline at end of file
+ password = 123456
+</StoreModule>
# Parameter: required
# Value: IP address or DNS name
# Default: localhost
- dbhost = localhost
+ server = localhost
# Database name
# Parameter: required
# Value: any, supported by database
# Default: stg
- dbname = stg
+ database = stg
# Database username
# Parameter: required
# Value: any, supported by database
# Default: stg
- dbuser = stg
+ user = stg
# Database password
# Parameter: required
# Value: any, supported by database
# Default: 123456
- rootdbpass = 123456
-</StoreModule>
\ No newline at end of file
+ password = 123456
+</StoreModule>
//-----------------------------------------------------------------------------
int MYSQL_STORE_SETTINGS::ParseSettings(const MODULE_SETTINGS & s)
{
-if (ParseParam(s.moduleParams, "dbuser", dbUser) < 0)
+if (ParseParam(s.moduleParams, "user", dbUser) < 0 &&
+ ParseParam(s.moduleParams, "dbuser", dbUser) < 0)
return -1;
-if (ParseParam(s.moduleParams, "rootdbpass", dbPass) < 0)
+if (ParseParam(s.moduleParams, "password", dbPass) < 0 &&
+ ParseParam(s.moduleParams, "rootdbpass", dbPass) < 0)
return -1;
-if (ParseParam(s.moduleParams, "dbname", dbName) < 0)
+if (ParseParam(s.moduleParams, "database", dbName) < 0 &&
+ ParseParam(s.moduleParams, "dbname", dbName) < 0)
return -1;
-if (ParseParam(s.moduleParams, "dbhost", dbHost) < 0)
+if (ParseParam(s.moduleParams, "server", dbHost) < 0 &&
+ ParseParam(s.moduleParams, "dbhost", dbHost) < 0)
return -1;
return 0;