我曾经能够在本地托管symfony / php项目,但是最近mySQL无法启动。我已经在网上查看并检查了我的日志,但是我不确定如何解决这个问题。
这里是我的mySQL日志:
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
else
{
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
app.UseHsts();
}
using (var serviceScope = app.ApplicationServices.GetService<IServiceScopeFactory>().CreateScope())
{
var context = serviceScope.ServiceProvider.GetRequiredService<EvoteWebServer.Models.EvoteWebServerContext>();
context.Database.EnsureCreated();
}
app.UseHttpsRedirection();
app.UseMvc();
}
}