zoukankan      html  css  js  c++  java
  • mysql解压版服务启动方式

    使用mysql解压版,在不安装为windows服务时,使用下面的方式启动。

    1、打开命令行,首先进入mysql解压目录的bin目录下

    d:mysqlin

    2、输入mysqld --console,最后出现如下类似字符说明启动成功

    Version: '5.6.22'  socket: ''  port: 3303  MySQL Community Server (GPL)

    3、保持当前命令行窗口不要关闭,再打开另一个命令行窗口用mysql命令就可以使用mysql了。

    Oracle is a registered trademark of Oracle Corporation and/or its
    affiliates. Other names may be trademarks of their respective
    owners.
    
    Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
    
    mysql>

    4、关闭方法。在另一个命令行窗口使用以下命令(非进入mysql时)

    mysqladmin -u root shutdown

    这是不安装为windows服务时启动mysql的方式。

    要想安装为windows服务使用以下命令

    mysqld --install

    以上方式使用默认的设置安装服务,要想使用自定义的配置文件,使用如下方式

    mysqld --install MySQL --defaults-file=file_path/my.ini

    其中,MySQL为要安装的服务名(任意取),指定服务名后,后面就可以加default-file参数,这个参数是指定默认配置文件的位置。注意:defaults不要忘了s。否则一样可以安装服务成功,但是却启动不了服务(总是报1067错误)。

  • 相关阅读:
    @topcoder
    @uoj
    Vue-路由跳转的几种方式和路由重定向
    Vue-设置默认路由选中
    Vue-使用webpack+vue-cli搭建项目
    Vue-状态管理Vuex的使用
    Vue-全局变量和方法
    JS-apply、call、bind
    CSS-禁止文本被选中
    Vue-路由模式 hash 和 history
  • 原文地址:https://www.cnblogs.com/zempty/p/4215215.html
Copyright © 2011-2022 走看看