Start by login in to your VPS as root user with SSH.
Step 1: Create a new .cnf file.
Step 2: Paste the following code into that file:
Step 3: Save and close the file. And then restart MySQL server.
sudo service mysql restart