summaryrefslogtreecommitdiffstats
path: root/mgr/docker/createdb.sql
diff options
context:
space:
mode:
Diffstat (limited to 'mgr/docker/createdb.sql')
-rw-r--r--mgr/docker/createdb.sql15
1 files changed, 15 insertions, 0 deletions
diff --git a/mgr/docker/createdb.sql b/mgr/docker/createdb.sql
new file mode 100644
index 0000000..41d2435
--- /dev/null
+++ b/mgr/docker/createdb.sql
@@ -0,0 +1,15 @@
+/******************drop old database and user***************************/
+use mysql;
+drop database IF EXISTS gvnfm;
+delete from user where User='gvnfm';
+FLUSH PRIVILEGES;
+
+/******************create new database and user***************************/
+create database gvnfm CHARACTER SET utf8;
+
+GRANT ALL PRIVILEGES ON gvnfm.* TO 'gvnfm'@'%' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION;
+GRANT ALL PRIVILEGES ON mysql.* TO 'gvnfm'@'%' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION;
+
+GRANT ALL PRIVILEGES ON gvnfm.* TO 'gvnfm'@'localhost' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION;
+GRANT ALL PRIVILEGES ON mysql.* TO 'gvnfm'@'localhost' IDENTIFIED BY 'gvnfm' WITH GRANT OPTION;
+FLUSH PRIVILEGES; \ No newline at end of file