logo-MindMajix
PostLinuxLinux
v
veerubhotla sowmithri

Posted on 20th June 2024|95 views

0
votes

Restart Mysql Ubuntu

How to restart MySQL server on Ubuntu Linux?

4 answers
Answers
P
naveen nani

Posted on 20th June 2024| views

To restart MySQL server on Ubuntu Linux, you can use the following command

systemctl restart mysql 

 

P
ravi sankar

Posted on 20th June 2024| views

To restart the MySql server on Ubuntu Linux, use init.d to restart the  service like below:

/etc/init.d/mysql restart

 

P
sri kanth

Posted on 20th June 2024| views

Following are the number of methods you can use to restart Mysql server on the Ubuntu Linux:    

sudo service mysql restart
Or 
sudo service mysqld restart
Or 
sudo /etc/init.d/mysql restart
Or 
sudo /etc/init.d/mysqld restart
Or 
sudo systemctl restart mysqld
Or 
sudo /usr/local/etc/rc.d/mysql-server restart

 

P
James ROBERT

Posted on 20th June 2024| views

Sometimes you may need to change some configurations inside MySQL configuration file my.cnf, so after you made or modified the MySQL cnf file to Restart MySQL Service.

You need to change the service name in the command or use the init.d to start the MySQL service, to restart MySQL on Ubuntu Linux:

service mysql restart
Or 
/etc/init.d/mysql restart

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo

  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos
Name
Course *
Email *
Phone Number