# MySqlConnectorSettings

- Kind: `class`
- Package: [Aspire.MySqlConnector](/reference/api/csharp/aspire.mysqlconnector.md)
- Version: `13.4.0`
- Namespace: `Aspire.MySqlConnector`
- Target framework: `net10.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Components/Aspire.MySqlConnector/MySqlConnectorSettings.cs)

Provides the client configuration settings for connecting to a MySQL database using MySqlConnector.

## Definition

```csharp
namespace Aspire.MySqlConnector;

public sealed class MySqlConnectorSettings
{
    // ...
}
```

## Constructors

- [MySqlConnectorSettings](/reference/api/csharp/aspire.mysqlconnector/mysqlconnectorsettings/constructors.md#constructor)

## Properties

- [ConnectionString](/reference/api/csharp/aspire.mysqlconnector/mysqlconnectorsettings/properties.md#connectionstring) : `string?` `get; set` -- The connection string of the MySQL database to connect to.
- [DisableHealthChecks](/reference/api/csharp/aspire.mysqlconnector/mysqlconnectorsettings/properties.md#disablehealthchecks) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the database health check is disabled or not.
- [DisableMetrics](/reference/api/csharp/aspire.mysqlconnector/mysqlconnectorsettings/properties.md#disablemetrics) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry metrics are disabled or not.
- [DisableTracing](/reference/api/csharp/aspire.mysqlconnector/mysqlconnectorsettings/properties.md#disabletracing) : `bool` `get; set` -- Gets or sets a boolean value that indicates whether the OpenTelemetry tracing is disabled or not.
