gdcloud database export sql CLUSTER_NAME URI [flags]
示例
To export data to an SQL dump file and upload to directory "dmp" under bucket "mybucket" from the DBCluster "sample-dbc", run:
gdcloud database export sql sample-dbc mybucket/dmp/
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eThis command exports data from a DBCluster custom resource to an SQL dump file.\u003c/p\u003e\n"],["\u003cp\u003eThe exported SQL dump file can be uploaded to object storage.\u003c/p\u003e\n"],["\u003cp\u003eThe command requires the DBCluster name and the destination URI in object storage.\u003c/p\u003e\n"],["\u003cp\u003eSeveral global flags like \u003ccode\u003e--configuration\u003c/code\u003e, \u003ccode\u003e--format\u003c/code\u003e, \u003ccode\u003e--help\u003c/code\u003e, \u003ccode\u003e--project\u003c/code\u003e, and \u003ccode\u003e--quiet\u003c/code\u003e are available for use.\u003c/p\u003e\n"]]],[],null,["# gdcloud database export sql\n\nNAME\n----\n\ngdcloud database export sql - Export data from a DBCluster custom resource to an SQL dump file and upload to object storage.\n\nSYNOPSIS\n--------\n\n gdcloud database export sql CLUSTER_NAME URI [flags]\n\n### EXAMPLES\n\n To export data to an SQL dump file and upload to directory \"dmp\" under bucket \"mybucket\" from the DBCluster \"sample-dbc\", run:\n\n gdcloud database export sql sample-dbc mybucket/dmp/\n\n### GDCLOUD WIDE FLAGS\n\nThese flags are available to all commands: `--configuration`, `--format`, `--help`, `--project`, `--quiet`.\n\nFor more information, see the [gdcloud CLI reference overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-reference/gdcloud) page."]]