Merge pull request #29 from jkaninda/develop

docs: add recommendation for backup user
This commit is contained in:
2024-01-14 12:35:00 +01:00
committed by GitHub

View File

@@ -52,6 +52,28 @@ MySQL Backup tool, backup database to S3 or Object Storage
| --help | -h | Print this help message and exit |
| --version | -V | Print version information and exit |
## Note:
Creating a user for backup tasks who has read-only access is recommended!
> create read-only user
```sh
mysql -u root -p
```
```sql
CREATE USER read_only_user IDENTIFIED BY 'your_strong_password';
```
```sql
GRANT SELECT, SHOW VIEW ON *.* TO read_only_user;
```
```sql
FLUSH PRIVILEGES;
```
## Backup database :
Simple backup usage