# Aspire.Hosting.MySql

- Module: `Aspire.Hosting.MySql`
- Version: `13.6.0`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/f4c27f2d43ddc1cacd0dd083b30d1fea1cee7a62)
- Functions: `10`
- Types: `3`

## Types

- [MySqlDatabaseResource](/reference/api/typescript/aspire.hosting.mysql/mysqldatabaseresource.md) -- `handle` - 6 members -- A resource that represents a MySQL database. This is a child resource of a {@ats-ref type:MySqlServerResource}.
- [MySqlServerResource](/reference/api/typescript/aspire.hosting.mysql/mysqlserverresource.md) -- `handle` - 16 members -- A resource that represents a MySQL container.
- [PhpMyAdminContainerResource](/reference/api/typescript/aspire.hosting.mysql/phpmyadmincontainerresource.md) -- `handle` - 1 members

## Functions

- [addDatabase](/reference/api/typescript/aspire.hosting.mysql/adddatabase.md) -- `method` -- Adds a MySQL database to the application model.
- [addMySql](/reference/api/typescript/aspire.hosting.mysql/addmysql.md) -- `method` -- Adds a MySQL server resource to the application model. For local development a container is used.
- [withCreationScript](/reference/api/typescript/aspire.hosting.mysql/withcreationscript.md) -- `method` -- Defines the SQL script used to create the database.
- [withDataBindMount](/reference/api/typescript/aspire.hosting.mysql/withdatabindmount.md) -- `method` -- Adds a bind mount for the data folder to a MySql container resource.
- [withDataVolume](/reference/api/typescript/aspire.hosting.mysql/withdatavolume.md) -- `method` -- Adds a named volume for the data folder to a MySql container resource.
- [withHostPort](/reference/api/typescript/aspire.hosting.mysql/withhostport.md) -- `method` -- Configures the host port that the PGAdmin resource is exposed on instead of using randomly assigned port.
- [withInitFiles](/reference/api/typescript/aspire.hosting.mysql/withinitfiles.md) -- `method` -- Copies init files into a MySql container resource.
- [withPassword](/reference/api/typescript/aspire.hosting.mysql/withpassword.md) -- `method` -- Configures the password that the MySQL resource uses.
- [withPhpMyAdmin](/reference/api/typescript/aspire.hosting.mysql/withphpmyadmin.md) -- `method` -- Adds a phpMyAdmin administration and development platform for MySql to the application model.
- [withRepl](/reference/api/typescript/aspire.hosting.mysql/withrepl.md) -- `method` -- Adds a REPL command that opens an authenticated MySQL shell in the dashboard terminal dock.
