Step 1 : Log into your server with a root or sudo user via SSH.
Step 2 : Use the below command to download and execute :
Step 3 : You’d need to assign 775 permissions for the script:
chmod 775 mysqltuner.pl
Step 4 : To Run the script use:
It’d then display the stats and recommendations similar to the one shown below :
This concludes the process.