need restart mysql when it crash in ubuntu code example
Example 1: ubuntu restart mysql
sudo service mysql restart
Example 2: restart mysql server ubuntu
service mysqld restart
sudo service mysql restart
service mysqld restart