MySQL hosting extensions
यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।
The Aspire Community Toolkit MySQL hosting extensions package provides extra functionality to the Aspire.Hosting.MySql hosting package.
This package provides the following features:
Hosting integration
Section titled “Hosting integration”To get started with the Aspire Community Toolkit MySQL hosting extensions, install the CommunityToolkit.Aspire.Hosting.MySql.Extensions NuGet package in the app host project.
aspire add communitytoolkit-mysql-extensionsAspire CLI इंटरैक्टिव है; प्रॉम्प्ट पर उपयुक्त परिणाम चुनें:
Select an integration to add:
> communitytoolkit-mysql-extensions (CommunityToolkit.Aspire.Hosting.MySql.Extensions)> Other results listed as selectable options...#:package CommunityToolkit.Aspire.Hosting.MySql.Extensions@*<PackageReference Include="CommunityToolkit.Aspire.Hosting.MySql.Extensions" Version="*" />Add management UI
Section titled “Add management UI”DbGate management UI
Section titled “DbGate management UI”To add the DbGate management UI to your MySQL resource, call the WithDbGate method on the MySqlServerResourceBuilder instance:
var builder = DistributedApplication.CreateBuilder(args);
var mysql = builder.AddMySql("mysql") .WithDbGate();
builder.AddProject<Projects.ExampleProject>() .WithReference(mysql);
// After adding all resources, run the app...This adds a new DbGate resource to the app host which is available from the Aspire dashboard. DbGate is a comprehensive database management tool that provides a web-based interface for managing your MySQL databases.
Adminer management UI
Section titled “Adminer management UI”To add the Adminer management UI to your MySQL resource, call the WithAdminer method on the MySqlServerResourceBuilder instance:
var builder = DistributedApplication.CreateBuilder(args);
var mysql = builder.AddMySql("mysql") .WithAdminer();
builder.AddProject<Projects.ExampleProject>() .WithReference(mysql);
// After adding all resources, run the app...This adds a new Adminer resource to the app host which is available from the Aspire dashboard. Adminer is a lightweight database management tool that provides a simple web interface for database operations.
Using both management UIs
Section titled “Using both management UIs”You can use both management UIs together on the same MySQL resource:
var builder = DistributedApplication.CreateBuilder(args);
var mysql = builder.AddMySql("mysql") .WithDbGate() .WithAdminer();
builder.AddProject<Projects.ExampleProject>() .WithReference(mysql);
// After adding all resources, run the app...