Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automated cherry pick of #385: fix: clean mysql slave database #386

Open
wants to merge 1 commit into
base: release/3.11
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/operations/databases/mysql_ha_recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,12 @@ UNLOCK TABLES;

### 从节点操作

再登入当前从节点的MariaDB,执行如下命名停止从节点的主从同步。
再登入当前从节点的MariaDB,执行如下命名停止从节点的主从同步,同时删除除information_schema,performance_schema,mysql之外的数据库

```
STOP SLAVE;
drop database yunioncloud;
drop database ...;
```

退出MariaDB,将主节点dump的数据导入从节点数据库:
Expand Down
Loading