From 9947ef13c124b2ff66207d4b0fb8e41d3f41f814 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Wed, 7 Apr 2021 02:21:44 +1000 Subject: [PATCH] Added a workaround for a mysql bug --- configure-script.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/configure-script.js b/configure-script.js index c03df85..fd3af61 100644 --- a/configure-script.js +++ b/configure-script.js @@ -274,6 +274,13 @@ CMD ["sleep 10 && npm start"] `; const sqlfile = ` +#BUGFIX: A bug with mysql +DROP USER '${projectDBUser}'@'%'; +DROP USER '${newsDBUser}'@'%'; +DROP USER '${authDBUser}'@'%'; +DROP USER '${chatDBUser}'@'%'; +FLUSH PRIVILEGES; + CREATE DATABASE IF NOT EXISTS ${projectName}; CREATE USER IF NOT EXISTS '${projectDBUser}'@'%' IDENTIFIED BY '${projectDBPass}'; GRANT ALL PRIVILEGES ON ${projectName}.* TO '${projectDBUser}'@'%';