Skip to content

Commit

Permalink
Merge pull request #386 from ioito/automated-cherry-pick-of-#385-upst…
Browse files Browse the repository at this point in the history
…ream-release-3.11

Automated cherry pick of #385: fix: clean mysql slave database
  • Loading branch information
zexi authored Feb 18, 2025
2 parents 08eb4d1 + 55df7da commit 6f21885
Showing 1 changed file with 3 additions and 1 deletion.
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

0 comments on commit 6f21885

Please sign in to comment.