zoukankan      html  css  js  c++  java
  • How Do I Restart MySQL Server?

    Each distribution comes with a shell script (read as service) to restart / stop / start MySQL server. First login as root user and open shell prompt (command prompt).

    First login as root user. Now type the following command as per your Linux distro:

    A) If you are using mysql on RedHat Linux (Fedora Core/Cent OS) then use following command:

    * To start mysql server:

    /etc/init.d/mysqld start

    * To stop mysql server:

    /etc/init.d/mysqld stop

    * To restart mysql server

     /etc/init.d/mysqld restart

    Tip: Redhat Linux also supports service command, which can be use to start, restart, stop any service:

    # service mysqld start
    # service mysqld stop
    # service mysqld restart

    (B) If you are using mysql on Debian / Ubuntu Linux then use following command:

    * To start mysql server:

    /etc/init.d/mysql start
    another way:service mysql start

    * To stop mysql server:

    /etc/init.d/mysql stop
    another way:service mysql stop

    * To restart mysql server

    /etc/init.d/mysql restart
    another way:service mysql restart
  • 相关阅读:
    [C++] Class (part 2)
    [C++] Class (part 1)
    [c++] Inline Function
    [C++] in-class initializer
    简易线程池Thread Pool
    js里function的apply vs. bind vs. call
    webix custom component-九宫格
    webix源码阅读
    比特币的原理+问题
    wpf中UserControl的几种绑定方式
  • 原文地址:https://www.cnblogs.com/JavaTechLover/p/2560528.html
Copyright © 2011-2022 走看看