From 919401afdaa375b8f3006186224c987841427123 Mon Sep 17 00:00:00 2001 From: shentao Date: Wed, 15 Nov 2017 19:21:15 +0800 Subject: Change database name for usecase-ui server Change-Id: I3ff33b6364c2cf8eade1e6f7439dd176556e20f3 Issue-Id: USECASEUI-54 Signed-off-by: shentao --- .../resources/dbscripts/mysql/usecase-ui-createdb.sql | 12 ++++++------ .../resources/dbscripts/mysql/usecase-ui-createobj.sql | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'standalone/src/main') diff --git a/standalone/src/main/assembly/resources/dbscripts/mysql/usecase-ui-createdb.sql b/standalone/src/main/assembly/resources/dbscripts/mysql/usecase-ui-createdb.sql index 31ab5b5e..004a717a 100644 --- a/standalone/src/main/assembly/resources/dbscripts/mysql/usecase-ui-createdb.sql +++ b/standalone/src/main/assembly/resources/dbscripts/mysql/usecase-ui-createdb.sql @@ -16,16 +16,16 @@ /******************drop old database and user***************************/ use mysql; -drop database IF EXISTS usercaseui; +drop database IF EXISTS uui; delete from user where User='usecaseui'; FLUSH PRIVILEGES; /******************create new database and user***************************/ -create database usercaseui CHARACTER SET utf8; +create database uui CHARACTER SET utf8; -GRANT ALL PRIVILEGES ON usercaseui.* TO 'usercaseui'@'%' IDENTIFIED BY 'usercaseui' WITH GRANT OPTION; -GRANT ALL PRIVILEGES ON mysql.* TO 'usercaseui'@'%' IDENTIFIED BY 'usercaseui' WITH GRANT OPTION; +GRANT ALL PRIVILEGES ON uui.* TO 'uui'@'%' IDENTIFIED BY 'uui' WITH GRANT OPTION; +GRANT ALL PRIVILEGES ON mysql.* TO 'uui'@'%' IDENTIFIED BY 'uui' WITH GRANT OPTION; -GRANT ALL PRIVILEGES ON usercaseui.* TO 'usercaseui'@'localhost' IDENTIFIED BY 'usercaseui' WITH GRANT OPTION; -GRANT ALL PRIVILEGES ON mysql.* TO 'usercaseui'@'localhost' IDENTIFIED BY 'usercaseui' WITH GRANT OPTION; +GRANT ALL PRIVILEGES ON uui.* TO 'uui'@'localhost' IDENTIFIED BY 'uui' WITH GRANT OPTION; +GRANT ALL PRIVILEGES ON mysql.* TO 'uui'@'localhost' IDENTIFIED BY 'uui' WITH GRANT OPTION; FLUSH PRIVILEGES; \ No newline at end of file diff --git a/standalone/src/main/assembly/resources/dbscripts/mysql/usecase-ui-createobj.sql b/standalone/src/main/assembly/resources/dbscripts/mysql/usecase-ui-createobj.sql index fc1e08a3..1acf5833 100644 --- a/standalone/src/main/assembly/resources/dbscripts/mysql/usecase-ui-createobj.sql +++ b/standalone/src/main/assembly/resources/dbscripts/mysql/usecase-ui-createobj.sql @@ -14,7 +14,7 @@ -- limitations under the License. -- -use usercaseui; +use uui; SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- cgit 1.2.3-korg