Skip to content
Docs Try Aspire

MySqlServerResource Properties

Class Properties 8 members
A resource that represents a MySQL container.
ConnectionStringExpression Section titled ConnectionStringExpression ReferenceExpression
Gets the connection string expression for the MySQL server.
public ReferenceExpression ConnectionStringExpression { get; }
Databases Section titled Databases IReadOnlyDictionary<string, string>
A dictionary where the key is the resource name and the value is the database name.
public IReadOnlyDictionary<string, string> Databases { get; }
Host Section titled Host EndpointReferenceExpression
Gets the host endpoint reference for this resource.
public EndpointReferenceExpression Host { get; }
JdbcConnectionString Section titled JdbcConnectionString ReferenceExpression
Gets the JDBC connection string for the MySQL server.
public ReferenceExpression JdbcConnectionString { get; }

Format: jdbc:mysql://{host}:{port}.

User and password credentials are not included in the JDBC connection string. Use the Username and Password connection properties to access credentials.

PasswordParameter Section titled PasswordParameter ParameterResource
Gets or sets the parameter that contains the MySQL server password.
public ParameterResource PasswordParameter { get; set; }
Port Section titled Port EndpointReferenceExpression
Gets the port endpoint reference for this resource.
public EndpointReferenceExpression Port { get; }
PrimaryEndpoint Section titled PrimaryEndpoint EndpointReference
Gets the primary endpoint for the MySQL server.
public EndpointReference PrimaryEndpoint { get; }
UriExpression Section titled UriExpression ReferenceExpression
Gets the connection URI expression for the MySQL server.
public ReferenceExpression UriExpression { get; }
Format: mysql://{user}:{password}@{host}:{port}.