<legend id='effXt'><style id='effXt'><dir id='effXt'><q id='effXt'></q></dir></style></legend>

        <bdo id='effXt'></bdo><ul id='effXt'></ul>

      <small id='effXt'></small><noframes id='effXt'>

    1. <tfoot id='effXt'></tfoot>

      <i id='effXt'><tr id='effXt'><dt id='effXt'><q id='effXt'><span id='effXt'><b id='effXt'><form id='effXt'><ins id='effXt'></ins><ul id='effXt'></ul><sub id='effXt'></sub></form><legend id='effXt'></legend><bdo id='effXt'><pre id='effXt'><center id='effXt'></center></pre></bdo></b><th id='effXt'></th></span></q></dt></tr></i><div id='effXt'><tfoot id='effXt'></tfoot><dl id='effXt'><fieldset id='effXt'></fieldset></dl></div>

      如何设计一个多租户的mysql数据库

      How to design a multi tenant mysql database(如何设计一个多租户的mysql数据库)
      <tfoot id='pYgjJ'></tfoot>
      1. <i id='pYgjJ'><tr id='pYgjJ'><dt id='pYgjJ'><q id='pYgjJ'><span id='pYgjJ'><b id='pYgjJ'><form id='pYgjJ'><ins id='pYgjJ'></ins><ul id='pYgjJ'></ul><sub id='pYgjJ'></sub></form><legend id='pYgjJ'></legend><bdo id='pYgjJ'><pre id='pYgjJ'><center id='pYgjJ'></center></pre></bdo></b><th id='pYgjJ'></th></span></q></dt></tr></i><div id='pYgjJ'><tfoot id='pYgjJ'></tfoot><dl id='pYgjJ'><fieldset id='pYgjJ'></fieldset></dl></div>
        <legend id='pYgjJ'><style id='pYgjJ'><dir id='pYgjJ'><q id='pYgjJ'></q></dir></style></legend>

            <tbody id='pYgjJ'></tbody>

            <small id='pYgjJ'></small><noframes id='pYgjJ'>

            • <bdo id='pYgjJ'></bdo><ul id='pYgjJ'></ul>
                本文介绍了如何设计一个多租户的mysql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                假设我需要设计一个数据库,该数据库将托管多个公司的数据.现在出于安全和管理目的,我需要确保不同公司的数据被正确隔离,但我也不想启动 10 个 mysql 进程来在 10 台不同的服务器上托管 10 家公司的数据.使用 mysql 数据库执行此操作的最佳方法是什么.

                Let us say I need to design a database which will host data for multiple companies. Now for security and admin purposes I need to make sure that the data for different companies is properly isolated but I also do not want to start 10 mysql processes for hosting the data for 10 companies on 10 different servers. What are the best ways to do this with the mysql database.

                推荐答案

                多租户数据库有多种方法.为了便于讨论,它们通常分为三类.

                There are several approaches to multi-tenant databases. For discussion, they're usually broken into three categories.

                • 每个租户一个数据库.
                • 共享数据库,每个架构一个租户.
                • 共享数据库,共享架构.租户标识符(租户键)将每一行与正确的租户相关联.

                MSDN 有一篇关于 每种设计的优缺点,以及实现示例.

                MSDN has a good article on the pros and cons of each design, and examples of implementations.

                <小时>微软显然已经删除了我提到的页面,但它们在 archive.org 上.链接已更改为指向那里.


                Microsoft has apparently taken down the pages I referred to, but they are on on archive.org. Links have been changed to point there.

                作为参考,这是第二篇文章的原始链接

                这篇关于如何设计一个多租户的mysql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Can#39;t Create Entity Data Model - using MySql and EF6(无法创建实体数据模型 - 使用 MySql 和 EF6)
                MySQL select with CONCAT condition(MySQL选择与CONCAT条件)
                Capitalize first letter of each word, in existing table(将现有表格中每个单词的首字母大写)
                How to retrieve SQL result column value using column name in Python?(如何在 Python 中使用列名检索 SQL 结果列值?)
                Update row with data from another row in the same table(使用同一表中另一行的数据更新行)
                Exporting results of a Mysql query to excel?(将 Mysql 查询的结果导出到 excel?)
                  1. <legend id='mbPXe'><style id='mbPXe'><dir id='mbPXe'><q id='mbPXe'></q></dir></style></legend>
                      <tbody id='mbPXe'></tbody>

                    <small id='mbPXe'></small><noframes id='mbPXe'>

                      <i id='mbPXe'><tr id='mbPXe'><dt id='mbPXe'><q id='mbPXe'><span id='mbPXe'><b id='mbPXe'><form id='mbPXe'><ins id='mbPXe'></ins><ul id='mbPXe'></ul><sub id='mbPXe'></sub></form><legend id='mbPXe'></legend><bdo id='mbPXe'><pre id='mbPXe'><center id='mbPXe'></center></pre></bdo></b><th id='mbPXe'></th></span></q></dt></tr></i><div id='mbPXe'><tfoot id='mbPXe'></tfoot><dl id='mbPXe'><fieldset id='mbPXe'></fieldset></dl></div>

                        <tfoot id='mbPXe'></tfoot>
                          <bdo id='mbPXe'></bdo><ul id='mbPXe'></ul>