aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordyh <dengyuanhong@chinamobile.com>2019-09-19 17:19:00 +0800
committerdyh <dengyuanhong@chinamobile.com>2019-09-19 17:19:22 +0800
commitf549258d1f58fa2c0e669412f0f4f9a0c097aeee (patch)
tree0263705fe7b597fbb7d126ea1e02d34baae853e9
parent68d6eee8cf3b19db1f5a7b3af1151661e8d2f13c (diff)
update database information
Change-Id: Id76f6006caf2e28f924c9cf5f8c7851164cc14d8 Issue-ID: MODELING-235 Signed-off-by: dyh <dengyuanhong@chinamobile.com>
-rw-r--r--catalog/pub/config/config.py6
-rw-r--r--resources/dbscripts/mysql/modeling-etsicatalog-createdb.sql2
2 files changed, 4 insertions, 4 deletions
diff --git a/catalog/pub/config/config.py b/catalog/pub/config/config.py
index b8a5141..86585a3 100644
--- a/catalog/pub/config/config.py
+++ b/catalog/pub/config/config.py
@@ -24,9 +24,9 @@ REDIS_PASSWD = ''
# [mysql]
DB_IP = "127.0.0.1"
DB_PORT = 3306
-DB_NAME = "nfvocatalog"
-DB_USER = "nfvocatalog"
-DB_PASSWD = "nfvocatalog"
+DB_NAME = "etsicatalog"
+DB_USER = "etsicatalog"
+DB_PASSWD = "etsicatalog"
# [MDC]
SERVICE_NAME = "catalog"
diff --git a/resources/dbscripts/mysql/modeling-etsicatalog-createdb.sql b/resources/dbscripts/mysql/modeling-etsicatalog-createdb.sql
index e3fc2ba..c6a71ab 100644
--- a/resources/dbscripts/mysql/modeling-etsicatalog-createdb.sql
+++ b/resources/dbscripts/mysql/modeling-etsicatalog-createdb.sql
@@ -17,7 +17,7 @@
/******************create database and user***************************/
use mysql;
-create database if not exists genericparser CHARACTER SET utf8;
+create database if not exists etsicatalog CHARACTER SET utf8;
GRANT ALL PRIVILEGES ON etsicatalog.* TO 'etsicatalog'@'%' IDENTIFIED BY 'etsicatalog' WITH GRANT OPTION;