Posted on 23rd April 2024
Posted on 23rd April 2024
To restart the MySql server on Ubuntu Linux, use init.d to restart the service like below:
/etc/init.d/mysql restart
Posted on 23rd April 2024
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
Posted on 23rd April 2024
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
STILL GOT QUERIES?