mysql restart server from cmd code example Example 1: mysqld restart sudo /etc/init.d/mysql restart Example 2: restart mysql server ubuntu service mysqld restart