Ads by ProfitSence
Close

Restart remote MySQL Server

Last Updated on Wednesday 5th Oct 2022

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