Watch Aspire live streamsDocsTry Aspire

Aspire.Hosting.MySql

Official
📦 Aspire.Hosting.MySqlv13.6.0
10Functions
3Types

Types

Functions

methodaddDatabasebuilder
Adds a MySQL database to the application model.
addDatabase(name: string, databaseName?: string): MySqlDatabaseResource
methodaddMySqlbuilder
Adds a MySQL server resource to the application model. For local development a container is used.
addMySql(name: string, password?: ParameterResource, port?: number): MySqlServerResource
methodwithCreationScriptbuilder
Defines the SQL script used to create the database.
withCreationScript(script: string): MySqlDatabaseResource
methodwithDataBindMountbuilder
Adds a bind mount for the data folder to a MySql container resource.
withDataBindMount(source: string, isReadOnly?: boolean): MySqlServerResource
methodwithDataVolumebuilder
Adds a named volume for the data folder to a MySql container resource.
withDataVolume(name?: string, isReadOnly?: boolean): MySqlServerResource
methodwithHostPortbuilder
Configures the host port that the PGAdmin resource is exposed on instead of using randomly assigned port.
withHostPort(port: number): PhpMyAdminContainerResource
methodwithInitFilesbuilder
Copies init files into a MySql container resource.
withInitFiles(source: string): MySqlServerResource
methodwithPasswordbuilder
Configures the password that the MySQL resource uses.
withPassword(password: ParameterResource): MySqlServerResource
methodwithPhpMyAdminbuilder
Adds a phpMyAdmin administration and development platform for MySql to the application model.
withPhpMyAdmin(configureContainer?: (obj: PhpMyAdminContainerResource) => Promise<void>, containerName?: string): MySqlServerResource
methodwithReplbuilder
Adds a REPL command that opens an authenticated MySQL shell in the dashboard terminal dock.
withRepl(): MySqlServerResource