From 0711665eaffbbbe95b084eca855b9c2d683f7cb0 Mon Sep 17 00:00:00 2001 From: SliverHorn <503551462@qq.com> Date: Fri, 23 Oct 2020 13:18:43 +0800 Subject: [PATCH] add windows bat and change mysql password --- server/build.bat | 12 ++++++++++++ server/config.yaml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 server/build.bat diff --git a/server/build.bat b/server/build.bat new file mode 100644 index 00000000..ca5c4cbe --- /dev/null +++ b/server/build.bat @@ -0,0 +1,12 @@ +@echo ##########Formatting code######################################### +go fmt ./ && go vet ./ +@echo ##########Format the code successfully############################ +@echo ##########Compiling gva.exe####################################### +go build -o gva.exe cmd/main.go +@echo ##########Successfully compiled gva.exe########################### +@echo ##########Initializing data using gva.exe######################### +gva.exe initdb +@echo ##########Use gva.exe to initialize data successfully############# +@echo ##########Deleting gva.exe######################################## +del gva.exe +@echo ##########Deleting gva.exe successfully########################### \ No newline at end of file diff --git a/server/config.yaml b/server/config.yaml index 04ff2570..29cf05d8 100644 --- a/server/config.yaml +++ b/server/config.yaml @@ -56,7 +56,7 @@ mysql: config: 'charset=utf8mb4&parseTime=True&loc=Local' db-name: 'qmPlus' username: 'root' - password: 'gdkid,,..' + password: 'Aa@6447985' max-idle-conns: 10 max-open-conns: 10 log-mode: false