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

主从库 #65

Open
lovelmh13 opened this issue Jun 8, 2021 · 0 comments
Open

主从库 #65

lovelmh13 opened this issue Jun 8, 2021 · 0 comments

Comments

@lovelmh13
Copy link
Owner

主库用来写数据
从库用来读数据

主库的数据会向从库中同步。

因为读的流量的大多,写的流量远远没有读的多,所以主库没有从库容易挂。

可以通过 myCat 来控制读写哪个库。从库都挂了,可以把读的流量也都切到主库上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant