# MySqlServerResource.WithAdminer

- Module: [CommunityToolkit.Aspire.Hosting.MySql.Extensions](/reference/api/go/communitytoolkit.aspire.hosting.mysql.extensions.md)
- Defined on: [MySqlServerResource](/reference/api/go/communitytoolkit.aspire.hosting.mysql.extensions/mysqlserverresource.md)
- Version: `13.6.1`
- Kind: `method`

Adds an administration and development platform for MySql to the application model using Adminer.

## Remarks

This version of the package defaults to the tag of the container image.
The MySql server resource builder.Configuration callback for Adminer container resource.The name of the container (Optional).
Use in application host with a MySql resource
```
var builder = DistributedApplication.CreateBuilder(args);
var mysql = builder.AddMySql("mysql")
.WithAdminer();
var db = mysql.AddDatabase("db");
var api = builder.AddProject<Projects.Api>("api")
.WithReference(db);
builder.Build().Run();
```

## Definition

```go
type MySqlServerResource interface {
    // ... omitted for brevity
    WithAdminer(options ...*WithAdminerOptions) MySqlServerResource
}
```

## Signature

```go
WithAdminer(options ...*WithAdminerOptions) MySqlServerResource
```

## Parameters

- `options` (`...*WithAdminerOptions`) -- optional settings, see [Options](#options)

## Options

Optional parameters are passed in a trailing `options ...*WithAdminerOptions` argument.

- `ConfigureContainer` (`func(obj AdminerContainerResource)`) `callback`
- `ContainerName` (`*string`)

## Returns

[`MySqlServerResource`](/reference/api/go/communitytoolkit.aspire.hosting.mysql.extensions/mysqlserverresource.md) -- A reference to the `IResourceBuilder`.

Returns a handle; failures surface later via `Err()`.

## Defined on

- [MySqlServerResource](/reference/api/go/communitytoolkit.aspire.hosting.mysql.extensions/mysqlserverresource.md) -- `handle`
