zoukankan      html  css  js  c++  java
  • mysql 启动,停止,重启

    启动mysql:

    方式一:sudo /etc/init.d/mysql start 
    方式二:sudo start mysql
    方式三:sudo service mysql start
    sudo ./mysqld_safe
     
    停止mysql:
    方式一:sudo /etc/init.d/mysql stop 
    方式二:sudo stop mysql
    方式三:sudo service mysql stop
     
    重启mysql:
    方式一:sudo/etc/init.d/mysql restart
    方式二:sudo restart mysql
    方式三:sudo service mysql restart
    ************************************************
    ubuntu下的操作

    sue@suepc:/$ whereis mysql
    mysql: /usr/bin/mysql /etc/mysql /usr/lib/mysql /usr/bin/X11/mysql /usr/include/mysql /usr/local/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz

    1.

    sue@suepc:/$ sudo /usr/bin/service mysql start

    ..
    * MySQL Community Server 5.7.19 is started
    sue@suepc:/$ sudo /etc/init.d/mysql stop
    ...
    * MySQL Community Server 5.7.19 is stopped

    2.
    sue@suepc:/$ sudo /etc/init.d/mysql start
    ..
    * MySQL Community Server 5.7.19 is started
    sue@suepc:/$

     
  • 相关阅读:
    vim键盘
    Maven 插件
    Maven 快照
    Maven 常用命令
    Maven POM
    Maven 依赖机制
    Maven 中央仓库
    Maven 本地仓库
    Maven 安装配置
    Maven 简介
  • 原文地址:https://www.cnblogs.com/suesky/p/8884735.html
Copyright © 2011-2022 走看看