# withCreationScript

- Module: [Aspire.Hosting.MySql](/reference/api/typescript/aspire.hosting.mysql.md)
- Version: `13.4.0`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Defines the SQL script used to create the database.

## Definition

```typescript
interface MySqlDatabaseResource {
  // ... omitted for brevity
  withCreationScript(script: string): MySqlDatabaseResource
}
```

## Parameters

- `script` (`string`)

## Returns

[MySqlDatabaseResource](/reference/api/typescript/aspire.hosting.mysql/mysqldatabaseresource.md) `builder`

## Applies to

- [MySqlDatabaseResource](/reference/api/typescript/aspire.hosting.mysql/mysqldatabaseresource.md)
