From 2ead4401b1c65795110513ef73ca9ac8e282d509 Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Thu, 27 Aug 2020 21:59:37 +0200 Subject: [PATCH] Script to create test dbs. #6 --- ...riadb-database.sql => mariadb-create-database.sql} | 0 contrib/mariadb-create-test-databases.sql | 11 +++++++++++ 2 files changed, 11 insertions(+) rename contrib/{mariadb-database.sql => mariadb-create-database.sql} (100%) create mode 100644 contrib/mariadb-create-test-databases.sql diff --git a/contrib/mariadb-database.sql b/contrib/mariadb-create-database.sql similarity index 100% rename from contrib/mariadb-database.sql rename to contrib/mariadb-create-database.sql diff --git a/contrib/mariadb-create-test-databases.sql b/contrib/mariadb-create-test-databases.sql new file mode 100644 index 0000000..3aaf5bf --- /dev/null +++ b/contrib/mariadb-create-test-databases.sql @@ -0,0 +1,11 @@ +CREATE DATABASE aura_engine_api_0 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; +CREATE DATABASE aura_engine_api_1 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; +CREATE DATABASE aura_engine_api_2 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; + +CREATE USER 'aura_engine_api'@'localhost' IDENTIFIED BY '1234'; + +GRANT ALL PRIVILEGES ON aura_engine_api_0.* TO 'aura_engine_api'@'localhost'; +GRANT ALL PRIVILEGES ON aura_engine_api_1.* TO 'aura_engine_api'@'localhost'; +GRANT ALL PRIVILEGES ON aura_engine_api_2.* TO 'aura_engine_api'@'localhost'; + +FLUSH PRIVILEGES; \ No newline at end of file -- GitLab