From 3ea3dc03cd5293f4078e941bf6f392ab60763f8b Mon Sep 17 00:00:00 2001 From: "akforweb@gmail.com" Date: Wed, 8 Jul 2020 19:06:06 +0300 Subject: [PATCH] add access klan --- app/confg.php | 1 + app/migrations/0001_grant.sql | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 app/migrations/0001_grant.sql diff --git a/app/confg.php b/app/confg.php index 77ed654..118abde 100644 --- a/app/confg.php +++ b/app/confg.php @@ -45,4 +45,5 @@ set('mail', db_config('argumentiru', 'mysql:host=mysql;dbname=argumentiru', 'newser', 'Chjk90yuiREY'); db_config('reader', 'mysql:host=mysql;dbname=argumentiru', 'reader', 'ghjyjkUIOhg56Fh'); db_config('chitatel', 'mysql:host=mysql;dbname=argumentiru', 'chitatel', 'hjYu78kl*90Uio'); +db_config('klan', 'mysql:host=mysql;dbname=argumentiru', 'klan', 'zpFGhyuRty765Jk'); diff --git a/app/migrations/0001_grant.sql b/app/migrations/0001_grant.sql new file mode 100644 index 0000000..d7b5711 --- /dev/null +++ b/app/migrations/0001_grant.sql @@ -0,0 +1,8 @@ +/* add read access */ +GRANT SELECT ON argumentiru.* TO 'newser'@'%' identified by 'Chjk90yuiREY'; + +/* add write access */ +GRANT SELECT, INSERT, UPDATE ON argumentiru.clients TO 'klan'@'%' identified by 'zpFGhyuRty765Jk'; +GRANT UPDATE ON argumentiru.anbuy TO 'klan'@'%' + +