One-click deployment and deployment of ssl will not restart mysql but will reload the web server.
I think it may be because your server memory is insufficient and the memory is full when reloading the web service. Then the system kills mysql and the panel.
Please try to Add virtual memory on the linux tools plugin