start mysql 8 ubuntu
sudo service mysql status
Active: active (running) since Tue 2021-
service mysql restart
root@-s-4vcpu-8gb-blr1-01:~# service mysql restart
root@-s-4vcpu-8gb-blr1-01:~#
restart mysql in ubuntu or any linux
service mysql start
service mysql stop
service mysql restart
systemctl status mysql.service
Restart mysql using systemctl
systemctl start mysql
systemctl stop mysql
systemctl restart mysql
systemctl status mysql
Restart mysql using /etc/int.d
/etc/init.d/mysqld start
/etc/init.d/mysqld stop
/etc/init.d/mysqld restart
/etc/init.d/mysqld reload
root@-s-4vcpu-8gb-blr1-01:~# /etc/init.d/mysqld reload
-bash: /etc/init.d/mysqld: No such file or directory
Reloading mysql without restart
Reloading the configuration file (my.cnf) cannot be done without restarting the mysql server.
some admins differents tricks to achieve the things.
root@-s-4vcpu-8gb-blr1-01:~# sudo service mysql-server reload
mysql-server: unrecognized service
root@-s-4vcpu-8gb-blr1-01:~# sudo service mysql reload
mysql: unrecognized service
Windows
cmd+R
Services.msc
stop mysql or restart mysql