Note : You’d need to be logged in as root user before to run the MySQLTuner script. Step 1 : Log into…