从 运行 生产 GCP SQL 服务中导出 SQL 是否安全?
Is it safe taking an SQL export form a running production GCP SQL service?
我们有一个 Google 云 SQL 实例和 1 个 vCPU 用于生产。我想通过导出到存储桶来获取数据的副本。这样做安全吗?它可能会阻止实例上的其他操作吗?
我认为考虑您正在使用的 RDBMS 很重要,在 here that PostgreSQL has issues when handling big blobs in an export, and at this other SO post 中提到有一个答案得票最多,并提示可以更顺畅地导出,因为它可以导致数据库获得反应迟钝,这是众所周知的事实。
在 MySQL 的情况下,产品文档在 article 中针对这种情况提供了一些提示,其中指出:
"If the server is running, it is necessary to perform appropriate locking so that the server does not change database contents during the backup"
您可以通过在导出命令中使用 mysqldump --lock-tables=false 来实现。
我们有一个 Google 云 SQL 实例和 1 个 vCPU 用于生产。我想通过导出到存储桶来获取数据的副本。这样做安全吗?它可能会阻止实例上的其他操作吗?
我认为考虑您正在使用的 RDBMS 很重要,在 here that PostgreSQL has issues when handling big blobs in an export, and at this other SO post 中提到有一个答案得票最多,并提示可以更顺畅地导出,因为它可以导致数据库获得反应迟钝,这是众所周知的事实。
在 MySQL 的情况下,产品文档在 article 中针对这种情况提供了一些提示,其中指出: "If the server is running, it is necessary to perform appropriate locking so that the server does not change database contents during the backup"
您可以通过在导出命令中使用 mysqldump --lock-tables=false 来实现。