From b9f574b3e6a4ac7fbe0b2f49ba068f7cc9e58b09 Mon Sep 17 00:00:00 2001 From: Juan Date: Wed, 1 Jun 2022 09:37:03 +0200 Subject: [PATCH] updated creat and grant to mention user --- b3-dev/node/session2/mariadb/creat-and-grant.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/b3-dev/node/session2/mariadb/creat-and-grant.sql b/b3-dev/node/session2/mariadb/creat-and-grant.sql index a204e32..051e006 100644 --- a/b3-dev/node/session2/mariadb/creat-and-grant.sql +++ b/b3-dev/node/session2/mariadb/creat-and-grant.sql @@ -2,11 +2,11 @@ CREATE DATABASE IF NOT EXISTS `nodeapi` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; -GRANT USAGE ON *.* TO "nodeapi"@"localhost" IDENTIFIED BY "RDSGF435FG" +GRANT USAGE ON *.* TO "nodeapiuser"@"localhost" IDENTIFIED BY "RDSGF435FG" WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; -GRANT USAGE ON *.* TO "nodeapi"@"%" IDENTIFIED BY "RDSGF435FG" +GRANT USAGE ON *.* TO "nodeapiuser"@"%" IDENTIFIED BY "RDSGF435FG" WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0; -GRANT ALL PRIVILEGES ON `nodeapi`.* TO 'nodeapi'@'%'; -GRANT ALL PRIVILEGES ON `nodeapi`.* TO 'nodeapi'@'localhost'; \ No newline at end of file +GRANT ALL PRIVILEGES ON `nodeapi`.* TO 'nodeapiuser'@'%'; +GRANT ALL PRIVILEGES ON `nodeapi`.* TO 'nodeapiuser'@'localhost'; \ No newline at end of file