Posted on 16th September 2024|95 views
How to restart MySQL server on Ubuntu Linux?
Posted on 16th September 2024| views
Posted on 16th September 2024| views
To restart the MySql server on Ubuntu Linux, use init.d to restart the service like below:
/etc/init.d/mysql restart
Posted on 16th September 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
Posted on 16th September 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