mirror of
https://github.com/jkaninda/mysql-bkup.git
synced 2025-12-06 21:49:40 +01:00
docs: add recommendation for backup user
This commit is contained in:
22
README.md
22
README.md
@@ -52,6 +52,28 @@ MySQL Backup tool, backup database to S3 or Object Storage
|
|||||||
| --help | -h | Print this help message and exit |
|
| --help | -h | Print this help message and exit |
|
||||||
| --version | -V | Print version information 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 :
|
## Backup database :
|
||||||
|
|
||||||
Simple backup usage
|
Simple backup usage
|
||||||
|
|||||||
Reference in New Issue
Block a user