public sealed class MySqlConnectionProfile : IMessage<MySqlConnectionProfile>, IEquatable<MySqlConnectionProfile>, IDeepCloneable<MySqlConnectionProfile>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class MySqlConnectionProfile.
Specifies connection parameters required specifically for MySQL databases.
Required. Input only. The password for the user that Database Migration
Service will be using to connect to the database. This field is not
returned on request, and the value is encrypted when stored in Database
Migration Service.
Required. The username that Database Migration Service will use to connect
to the database. The value is encrypted when stored in Database Migration
Service.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eMySqlConnectionProfile\u003c/code\u003e class in the Database Migration v1 API is used to specify connection parameters for MySQL databases.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eMySqlConnectionProfile\u003c/code\u003e is 2.5.0, with older versions available for reference, ranging down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eMySqlConnectionProfile\u003c/code\u003e include \u003ccode\u003eHost\u003c/code\u003e, \u003ccode\u003ePort\u003c/code\u003e, \u003ccode\u003eUsername\u003c/code\u003e, and \u003ccode\u003ePassword\u003c/code\u003e, which are required for connecting to the MySQL database, as well as optional properties such as \u003ccode\u003eCloudSqlId\u003c/code\u003e and \u003ccode\u003eSsl\u003c/code\u003e configurations.\u003c/p\u003e\n"],["\u003cp\u003eThe password for the connection to the MySQL database is stored encrypted within the Database Migration Service, and is only inputted, never returned on requests.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class MySqlConnectionProfile (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.MySqlConnectionProfile)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.MySqlConnectionProfile)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.MySqlConnectionProfile)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.MySqlConnectionProfile)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.MySqlConnectionProfile)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.MySqlConnectionProfile)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.MySqlConnectionProfile)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.MySqlConnectionProfile)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.MySqlConnectionProfile) \n\n public sealed class MySqlConnectionProfile : IMessage\u003cMySqlConnectionProfile\u003e, IEquatable\u003cMySqlConnectionProfile\u003e, IDeepCloneable\u003cMySqlConnectionProfile\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class MySqlConnectionProfile.\n\nSpecifies connection parameters required specifically for MySQL databases. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e MySqlConnectionProfile \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[MySqlConnectionProfile](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.MySqlConnectionProfile), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[MySqlConnectionProfile](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.MySqlConnectionProfile), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[MySqlConnectionProfile](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.MySqlConnectionProfile), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudDms.V1](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudDms.V1.dll\n\nConstructors\n------------\n\n### MySqlConnectionProfile()\n\n public MySqlConnectionProfile()\n\n### MySqlConnectionProfile(MySqlConnectionProfile)\n\n public MySqlConnectionProfile(MySqlConnectionProfile other)\n\nProperties\n----------\n\n### CloudSqlId\n\n public string CloudSqlId { get; set; }\n\nIf the source is a Cloud SQL database, use this field to\nprovide the Cloud SQL instance ID of the source.\n\n### Host\n\n public string Host { get; set; }\n\nRequired. The IP or hostname of the source MySQL database.\n\n### Password\n\n public string Password { get; set; }\n\nRequired. Input only. The password for the user that Database Migration\nService will be using to connect to the database. This field is not\nreturned on request, and the value is encrypted when stored in Database\nMigration Service.\n\n### PasswordSet\n\n public bool PasswordSet { get; set; }\n\nOutput only. Indicates If this connection profile password is stored.\n\n### Port\n\n public int Port { get; set; }\n\nRequired. The network port of the source MySQL database.\n\n### Ssl\n\n public SslConfig Ssl { get; set; }\n\nSSL configuration for the destination to connect to the source database.\n\n### Username\n\n public string Username { get; set; }\n\nRequired. The username that Database Migration Service will use to connect\nto the database. The value is encrypted when stored in Database Migration\nService."]]