Restart remote MySQL Server

Last Updated On Sunday 19th Dec 2021

restart mysql ubuntu

Login with the proper credentials and ip address, ssh root@128.0.0.1.
Now You get access to shell Access.
You need to be root to stop/start mysql.

How to Restart MySql Server Ubuntu

You can use the service command to perform basic operations.

Stop MySQL Server

	  sudo service mysql stop
	

Start MySQL Server

	  sudo service mysql start
	

ReStart MySQL Server

	  sudo service mysql restart
	

Check MySQL Server Status

	   sudo service mysql status
	
  • If your mySQL service is named something else like mysqld you may have to change the command accordingly , Try the Below One.
	sudo /etc/init.d/mysql restart
	

For Ubuntu 12.10 to 14.04

START MYSQL

	  sudo start mysql
	

RESTART MYSQL

	  sudo restart mysql # The service must be running
	

STOP MYSQL

	  sudo stop mysql # The service must be running