{"id":862,"date":"2017-02-21T13:04:14","date_gmt":"2017-02-21T13:04:14","guid":{"rendered":"https:\/\/www.xsofthost.com\/help\/?p=862"},"modified":"2017-08-31T21:53:38","modified_gmt":"2017-08-31T21:53:38","slug":"restart-mysql-service-using-linux-shell-command-line","status":"publish","type":"post","link":"https:\/\/www.xsofthost.com\/help\/restart-mysql-service-using-linux-shell-command-line\/","title":{"rendered":"How to Restart MySQL Service Using Linux Shell Command Line"},"content":{"rendered":"<h2 class=\"headline\">Why you need to Restart SSH Service<\/h2>\n<p>Sometimes you may need to change some configurations inside MySQL configuration file <em>my.cnf\u00a0<\/em>, so after you made or modify the MySQL cnf file ,properly you need to Stop and Start or Restart MySQL Service.<\/p>\n<h2 class=\"headline\">How To\u00a0 Restart MySQL Service under Linux \/ UNIX<\/h2>\n<p>The following examples using the <strong>restart<\/strong> command in case you want to stop the service you can use <strong>stop<\/strong> command and use <strong>start<\/strong> command to start stopped service. <div class=\"well well-sm  oscitas-bootstrap-container \">You have run these command under <strong>root\/administrator privileges<\/strong> .<\/div><\/p>\n<h3>Restart MySQL Service On CentOS\/RHEL\/Fedora\/Scientific Linux version 4.x\/5.x\/6.x<\/h3>\n<div class=\"cmd\">\n<div><span class=\"prompt\">service mysqld restart<\/span><\/div>\n<div>Or<\/div>\n<div><span class=\"prompt\">\/etc\/init.d\/mysqld restart<\/span><\/div>\n<\/div>\n<h3>Restart MySQL on CentOS\/RHEL\/Fedora\/Scientific Linux version 7.x<\/h3>\n<div class=\"cmd\">\n<div><span class=\"prompt\">systemctl restart mysqld<\/span><\/div>\n<\/div>\n<h3>Restart MySQL on Debian\/Ubuntu Linux<\/h3>\n<div class=\"cmd\">\n<div><span class=\"prompt\">\/etc\/init.d\/mysql restart<\/span><\/div>\n<div>Or<\/div>\n<div><span class=\"prompt\">service mysql restart<\/span><\/div>\n<\/div>\n<h3>Restart MySQL On FreeBSD Unix<\/h3>\n<div class=\"cmd\">\n<div><span class=\"prompt\">\/usr\/local\/etc\/rc.d\/mysql-server start <\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Why you need to Restart SSH Service Sometimes you may need to change some configurations inside MySQL configuration file my.cnf\u00a0, so after you made or modify the MySQL cnf file ,properly you need to Stop and Start or Restart MySQL Service. How To\u00a0 Restart MySQL Service under Linux \/ UNIX The following examples using the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":859,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[41],"tags":[178,42,50,148,26,142,74],"_links":{"self":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/862"}],"collection":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/comments?post=862"}],"version-history":[{"count":9,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/862\/revisions"}],"predecessor-version":[{"id":878,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/posts\/862\/revisions\/878"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media\/859"}],"wp:attachment":[{"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/media?parent=862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/categories?post=862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xsofthost.com\/help\/wp-json\/wp\/v2\/tags?post=862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}