Skip to content

Commit

Permalink
Merge pull request #41 from skysqlinc/readme
Browse files Browse the repository at this point in the history
adding mysql.global_priv to the mysqldump exclusion list
  • Loading branch information
NedPK authored Aug 6, 2024
2 parents 2dc1528 + 262a26f commit b7dd897
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,25 @@
# skysql-docs
Repository for all SkySQL public documentation

## Installation
To install the repository, follow these steps:
1. Clone the repository by running: `git clone git@github.com:skysqlinc/skysql-docs.git`

## Local Debugging
### Using VS Code Markdown Extension
One option for local debugging is to use the VS Code Markdown extension. Please note that this method allows you to preview only the current page.

### Using MkDocs
Another option is to use MkDocs for local debugging. Follow these steps:
1. Install MkDocs by running: `pip install mkdocs`
2. Install the MkDocs Material theme by running: `pip install mkdocs-material`
3. Serve the documentation locally by running: `mkdocs serve`

## Development Practices
When making changes:
1. Create a new branch for your changes: `git checkout -b new-branch-name`
2. Test your changes locally.
3. Commit your changes:
- `git add .`
- `git commit -m "Your commit message"`
4. Push your changes to the remote repository: `git push origin new-branch-name`
5. Create a pull request for your changes to be reviewed and merged into the main branch.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ To minimize downtime during migration, set up live replication from your source

```bash
mysqldump -u [username] -p --all-databases --ignore-table=mysql.user \
--routines --triggers --events --skip-lock-tables > dump.sql
--ignore-table=mysql.global_priv --routines --triggers --events \
--skip-lock-tables > dump.sql
```

3. **Dump the User Table Separately**: Since the `mysql.user` view aggregates information from the `global_priv` table, you should dump the `global_priv` table separately to ensure that user privileges are preserved:
Expand Down

0 comments on commit b7dd897

Please sign in to comment.