MySQl shutdown unexpectedly

I’ll give the solution but this is not the only solution.