From eaa81c55064612faeec4cb5c5819a6931dfc8155 Mon Sep 17 00:00:00 2001 From: arunskurian Date: Mon, 28 Jun 2021 23:50:21 -0400 Subject: [PATCH] Updates to permissions on MySQL Users --- .../Pre-Requisites/Manual_Ingestion_Mode.md | 14 ++++++--- docs/docs/Pre-Requisites/Replication_Mode.md | 29 +++++++++++++------ docs/docs/Release_Notes/MySQL_2.0.26.md | 2 ++ artifact.json => mysql_artifact_v2.0.26.json | 0 4 files changed, 32 insertions(+), 13 deletions(-) rename artifact.json => mysql_artifact_v2.0.26.json (100%) diff --git a/docs/docs/Pre-Requisites/Manual_Ingestion_Mode.md b/docs/docs/Pre-Requisites/Manual_Ingestion_Mode.md index 5b1705c..b39ce17 100644 --- a/docs/docs/Pre-Requisites/Manual_Ingestion_Mode.md +++ b/docs/docs/Pre-Requisites/Manual_Ingestion_Mode.md @@ -17,14 +17,20 @@ Hence, we require a user with the following permissions on the staging database. There are 2 ways to achieve this -1. Create this user on your source database so that when the backup is restored, this user is present in the staging db. +1. Create this user on your source database so that when the backup is restored, this user is present in the staging db. 2. Create this user manually in the staging db. In this case, the customer user must ensure that this user is always present in the staging db and has the necessary privileges + + ```jql + mysql>CREATE USER 'delphix_os'@'localhost' IDENTIFIED BY 'delphix_user_passwd'; + ``` +3. Grant the necessary privileges to the user. - ```jql - mysql> GRANT SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER on *.* to 'user'@'staging-host'; - ``` + ```jql + mysql> GRANT SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER on *.* to 'delphix_os'@'localhost'; + ``` + You can also grant more permissive privileges ```jql diff --git a/docs/docs/Pre-Requisites/Replication_Mode.md b/docs/docs/Pre-Requisites/Replication_Mode.md index fb6224b..75349b6 100644 --- a/docs/docs/Pre-Requisites/Replication_Mode.md +++ b/docs/docs/Pre-Requisites/Replication_Mode.md @@ -11,17 +11,28 @@ Given below are the pre-requisites for MySQL virtualization when using Replicati #### Source DB User - A Source DB user who - - Can connect to the source database from staging host. + - Can connect to the source database from staging host as well as locally + ```jql + mysql>CREATE USER 'delphix_os'@'' IDENTIFIED BY 'delphix_user_passwd'; + ``` + ```jql + mysql>CREATE USER 'delphix_os'@'localhost' IDENTIFIED BY 'delphix_user_passwd'; + ``` + - Has at the minimum, the following permissions on the source database(s). - - *SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER, REPLICATION CLIENT,REPLICATION SLAVE* - - mysql>GRANT SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER, REPLICATION CLIENT,REPLICATION SLAVE on *.* to 'user'@'staging-host'; - - You can also grant more permissive privileges - + + *SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER, REPLICATION CLIENT,REPLICATION SLAVE* + ```jql + mysql>GRANT SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER, REPLICATION CLIENT,REPLICATION SLAVE on *.* to 'delphix_os'@'staging-host'; + ``` + ```jql + mysql>GRANT SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER on *.* to 'delphix_os'@'localhost'; + ``` + + You can also grant more permissive privileges + ```jql mysql>GRANT ALL PRIVILEGES ON *.* TO 'user'@'%'; - + ``` !!! note Remember, this is the user that Delphix uses to manage the Staging database. diff --git a/docs/docs/Release_Notes/MySQL_2.0.26.md b/docs/docs/Release_Notes/MySQL_2.0.26.md index 84dd9b2..7926716 100644 --- a/docs/docs/Release_Notes/MySQL_2.0.26.md +++ b/docs/docs/Release_Notes/MySQL_2.0.26.md @@ -7,6 +7,8 @@ To install dxi, refer to [Plugin Installation](/PluginInstallation/index.html) - Selecting Databases : Ability to select specific databases in the Source MySQL server when creating a dSource. - Delphix generated config file : If a my.cnf file is not provided while creating a dSource, Delphix now creates one. - New Exit Return Codes : MySQL Plugin 2.0.26 introduces more granular exit codes for errors. + +###Breaking Changes - Removed Simple Tablespace Backup: MySQL Plugin does not support the Simple Tablespace Backup option for Linking. This option may be supported in the future. ###Supported versions diff --git a/artifact.json b/mysql_artifact_v2.0.26.json similarity index 100% rename from artifact.json rename to mysql_artifact_v2.0.26.json