- SSH into the machine. Using the proper credentials and ip address,
ssh root@128.0.0.1. This should provide you with shell access to the Ubuntu server. - Restart the mySQL service.
sudo service mysql restartshould do the job.
If your mySQL service is named something else like mysqld you may have to change the command accordingly or try this: sudo /etc/init.d/mysql restart