How to restart remote MySQL server running on Ubuntu linux?

霸气de小男生 提交于 2019-12-02 17:23:30
  1. SSH into the machine. Using the proper credentials and ip address, ssh root@128.0.0.1. This should provide you with shell access to the Ubuntu server.
  2. Restart the mySQL service. sudo service mysql restart should do the job.

If your mySQL service is named something else like mysqld you may have to change the command accordingly or try this: sudo /etc/init.d/mysql restart

Ram Neduri
sudo service mysql stop;
sudo service mysql start;

If the above process will not work let's check one the given code above you can stop Mysql server and again start server

felixmpa

Another way is:

systemctl restart mysql
  • To restart mysql use this command

sudo service mysql restart

Or

sudo restart mysql

Reference

Jonathan Plackett

What worked for me on an Amazon EC2 server was:

sudo service mysqld restart
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!