Option to include SQL statement required to set up replication. If set to 1, the dump file includes a CHANGE MASTER TO statement with the binary log coordinates, and --set-gtid-purged is set to ON. If set to 2, the CHANGE MASTER TO statement is written as a SQL comment and has no effect. If set to any value other than 1, --set-gtid-purged is set to OFF.
getMasterData
Option to include SQL statement required to set up replication. If set
to 1, the dump file includes a CHANGE MASTER TO statement with the
binary log coordinates, and --set-gtid-purged is set to ON. If set to
2, the CHANGE MASTER TO statement is written as a SQL comment and
has no effect. If set to any value other than 1, --set-gtid-purged
is set to OFF.
Option to include SQL statement required to set up replication. If set
to 1, the dump file includes a CHANGE MASTER TO statement with the
binary log coordinates, and --set-gtid-purged is set to ON. If set to
2, the CHANGE MASTER TO statement is written as a SQL comment and
has no effect. If set to any value other than 1, --set-gtid-purged
is set to OFF.
Returns
Type
Description
int|null
setMasterData
Option to include SQL statement required to set up replication. If set
to 1, the dump file includes a CHANGE MASTER TO statement with the
binary log coordinates, and --set-gtid-purged is set to ON. If set to
2, the CHANGE MASTER TO statement is written as a SQL comment and
has no effect. If set to any value other than 1, --set-gtid-purged
is set to OFF.
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
Option to include SQL statement required to set up replication. If set
to 1, the dump file includes a CHANGE MASTER TO statement with the
binary log coordinates, and --set-gtid-purged is set to ON. If set to
2, the CHANGE MASTER TO statement is written as a SQL comment and
has no effect. If set to any value other than 1, --set-gtid-purged
is set to OFF.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Sql Admin V1 Client - Class MysqlExportOptions (1.2.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.6 (latest)](/php/docs/reference/cloud-sql-admin/latest/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [1.2.5](/php/docs/reference/cloud-sql-admin/1.2.5/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [1.1.0](/php/docs/reference/cloud-sql-admin/1.1.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [1.0.0](/php/docs/reference/cloud-sql-admin/1.0.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.19.0](/php/docs/reference/cloud-sql-admin/0.19.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.18.0](/php/docs/reference/cloud-sql-admin/0.18.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.17.1](/php/docs/reference/cloud-sql-admin/0.17.1/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.16.1](/php/docs/reference/cloud-sql-admin/0.16.1/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.12.0](/php/docs/reference/cloud-sql-admin/0.12.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.11.0](/php/docs/reference/cloud-sql-admin/0.11.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.10.0](/php/docs/reference/cloud-sql-admin/0.10.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.9.0](/php/docs/reference/cloud-sql-admin/0.9.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.8.0](/php/docs/reference/cloud-sql-admin/0.8.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.7.0](/php/docs/reference/cloud-sql-admin/0.7.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.6.0](/php/docs/reference/cloud-sql-admin/0.6.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.5.0](/php/docs/reference/cloud-sql-admin/0.5.0/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.4.1](/php/docs/reference/cloud-sql-admin/0.4.1/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.3.1](/php/docs/reference/cloud-sql-admin/0.3.1/V1.ExportContext.SqlExportOptions.MysqlExportOptions)\n- [0.2.12](/php/docs/reference/cloud-sql-admin/0.2.12/V1.ExportContext.SqlExportOptions.MysqlExportOptions) \nReference documentation and code samples for the Google Cloud Sql Admin V1 Client class MysqlExportOptions.\n\nOptions for exporting from MySQL.\n\nGenerated from protobuf message `google.cloud.sql.v1.ExportContext.SqlExportOptions.MysqlExportOptions`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Sql \\\\ V1 \\\\ ExportContext \\\\ SqlExportOptions\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMasterData\n\nOption to include SQL statement required to set up replication. If set\nto `1`, the dump file includes a CHANGE MASTER TO statement with the\nbinary log coordinates, and --set-gtid-purged is set to ON. If set to\n`2`, the CHANGE MASTER TO statement is written as a SQL comment and\nhas no effect. If set to any value other than `1`, --set-gtid-purged\nis set to OFF.\n\n### hasMasterData\n\n### clearMasterData\n\n### getMasterDataUnwrapped\n\nReturns the unboxed value from `getMasterData()`\n\nOption to include SQL statement required to set up replication. If set\nto `1`, the dump file includes a CHANGE MASTER TO statement with the\nbinary log coordinates, and --set-gtid-purged is set to ON. If set to\n`2`, the CHANGE MASTER TO statement is written as a SQL comment and\nhas no effect. If set to any value other than `1`, --set-gtid-purged\nis set to OFF.\n\n### setMasterData\n\nOption to include SQL statement required to set up replication. If set\nto `1`, the dump file includes a CHANGE MASTER TO statement with the\nbinary log coordinates, and --set-gtid-purged is set to ON. If set to\n`2`, the CHANGE MASTER TO statement is written as a SQL comment and\nhas no effect. If set to any value other than `1`, --set-gtid-purged\nis set to OFF.\n\n### setMasterDataUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\Int32Value object.\n\nOption to include SQL statement required to set up replication. If set\nto `1`, the dump file includes a CHANGE MASTER TO statement with the\nbinary log coordinates, and --set-gtid-purged is set to ON. If set to\n`2`, the CHANGE MASTER TO statement is written as a SQL comment and\nhas no effect. If set to any value other than `1`, --set-gtid-purged\nis set to OFF."]]