how to restart mysql ubuntu terminal code example Example 1: ubuntu restart mysql sudo service mysql restart Example 2: restart sql server ubuntu service mysql restart