how to auto create database in aspire.net and use mysqlconnector,why i cant do it ?
<code>Server=localhost;Port=51050;User ID=root;Password=H6!V*kJF*5}Qz}+3nZu6}b;Database=mysqldb
2024-04-23T19:34:46.8846127 fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
An unhandled exception has occurred while executing the request.
SqlSugar.SqlSugarException: 中文提示 : 连接数据库过程中发生错误,检查服务器是否正常连接字符串是否正
</code>
<code>Server=localhost;Port=51050;User ID=root;Password=H6!V*kJF*5}Qz}+3nZu6}b;Database=mysqldb
2024-04-23T19:34:46.8846127 fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
An unhandled exception has occurred while executing the request.
SqlSugar.SqlSugarException: 中文提示 : 连接数据库过程中发生错误,检查服务器是否正常连接字符串是否正
</code>
Server=localhost;Port=51050;User ID=root;Password=H6!V*kJF*5}Qz}+3nZu6}b;Database=mysqldb
2024-04-23T19:34:46.8846127 fail: Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware[1]
An unhandled exception has occurred while executing the request.
SqlSugar.SqlSugarException: 中文提示 : 连接数据库过程中发生错误,检查服务器是否正常连接字符串是否正
for this example https://learn.microsoft.com/en-us/dotnet/aspire/database/mysql-component?tabs=dotnet-cli
New contributor
张鹏飞 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1