Skip to content
This repository was archived by the owner on Apr 20, 2023. It is now read-only.

Commit 7021d55

Browse files
authored
Merge pull request #4 from delphix/develop
Updates to permissions on MySQL Users
2 parents 7177f1f + 4e907de commit 7021d55

File tree

4 files changed

+32
-13
lines changed

4 files changed

+32
-13
lines changed

docs/docs/Pre-Requisites/Manual_Ingestion_Mode.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,20 @@ Hence, we require a user with the following permissions on the staging database.
1717

1818
There are 2 ways to achieve this
1919

20-
1. Create this user on your source database so that when the backup is restored, this user is present in the staging db.
20+
1. Create this user on your source database so that when the backup is restored, this user is present in the staging db.
2121
2. Create this user manually in the staging db.
2222
In this case, the customer user must ensure that this user is always present in the staging db
2323
and has the necessary privileges
24+
25+
```jql
26+
mysql>CREATE USER 'delphix_os'@'localhost' IDENTIFIED BY 'delphix_user_passwd';
27+
```
28+
3. Grant the necessary privileges to the user.
2429
25-
```jql
26-
mysql> GRANT SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER on *.* to 'user'@'staging-host';
27-
```
30+
```jql
31+
mysql> GRANT SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER on *.* to 'delphix_os'@'localhost';
32+
```
33+
2834
You can also grant more permissive privileges
2935
3036
```jql

docs/docs/Pre-Requisites/Replication_Mode.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,28 @@ Given below are the pre-requisites for MySQL virtualization when using Replicati
1111

1212
#### Source DB User
1313
- A Source DB user who
14-
- Can connect to the source database from staging host.
14+
- Can connect to the source database from staging host as well as locally
15+
```jql
16+
mysql>CREATE USER 'delphix_os'@'<staging_host>' IDENTIFIED BY 'delphix_user_passwd';
17+
```
18+
```jql
19+
mysql>CREATE USER 'delphix_os'@'localhost' IDENTIFIED BY 'delphix_user_passwd';
20+
```
21+
1522
- Has at the minimum, the following permissions on the source database(s).
16-
17-
*SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER, REPLICATION CLIENT,REPLICATION SLAVE*
18-
19-
mysql>GRANT SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER, REPLICATION CLIENT,REPLICATION SLAVE on *.* to 'user'@'staging-host';
20-
21-
You can also grant more permissive privileges
22-
23+
24+
*SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER, REPLICATION CLIENT,REPLICATION SLAVE*
25+
```jql
26+
mysql>GRANT SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER, REPLICATION CLIENT,REPLICATION SLAVE on *.* to 'delphix_os'@'staging-host';
27+
```
28+
```jql
29+
mysql>GRANT SELECT, SHUTDOWN, SUPER, RELOAD ,SHOW VIEW, EVENT, TRIGGER on *.* to 'delphix_os'@'localhost';
30+
```
31+
32+
You can also grant more permissive privileges
33+
```jql
2334
mysql>GRANT ALL PRIVILEGES ON *.* TO 'user'@'%';
24-
35+
```
2536
2637
!!! note
2738
Remember, this is the user that Delphix uses to manage the Staging database.

docs/docs/Release_Notes/MySQL_2.0.26.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ To install dxi, refer to [Plugin Installation](/PluginInstallation/index.html)
77
- Selecting Databases : Ability to select specific databases in the Source MySQL server when creating a dSource.
88
- Delphix generated config file : If a my.cnf file is not provided while creating a dSource, Delphix now creates one.
99
- New Exit Return Codes : MySQL Plugin 2.0.26 introduces more granular exit codes for errors.
10+
11+
###Breaking Changes
1012
- Removed Simple Tablespace Backup: MySQL Plugin does not support the Simple Tablespace Backup option for Linking. This option may be supported in the future.
1113

1214
###Supported versions
File renamed without changes.

0 commit comments

Comments
 (0)