How to restart remote MySQL server running on Ubuntu linux?
sudo service mysql stop;
sudo service mysql start;
If the above process will not work let's check one the given code above you can stop Mysql server and again start server
- SSH into the machine. Using the proper credentials and ip address,
ssh [email protected]
. This should provide you with shell access to the Ubuntu server. - Restart the mySQL service.
sudo service mysql restart
should 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