zoukankan      html  css  js  c++  java
  • Mysql错误日志位置,mysql服务的启动与关闭

    一、错误日志相关

    1、mysql错误日志所在位置

    windows下,错误日志文件一般在安装目录下的data目录下。扩展名是.err的文件,也可以打开安装目录下的my.ini文件检查一下
    linux下,错误日志文件一般在/var/log/mysqld.log。可以用cat /etc/my.cnf查看相关信息

    二、linux上mysql服务的启动与关闭

    启动

    1、使用 service 启动:service mysql start
    2、使用 mysqld 脚本启动:/etc/inint.d/mysql start
    3、使用 safe_mysqld 启动:safe_mysql&

    停止
    1、使用 service 启动:service mysql stop
    2、使用 mysqld 脚本启动:/etc/inint.d/mysql stop
    3、mysqladmin shutdown

    重启
    1、使用 service 启动:service mysql restart
    2、使用 mysqld 脚本启动:/etc/inint.d/mysql restart

  • 相关阅读:
    tiled工具使用
    shan
    随笔
    潘大神又一篇
    潘大神的文章
    最近用到这个强大的工具 PhysicsEditor (转)
    为什么要写博客?
    nyoj 998
    欧拉函数
    背包问题
  • 原文地址:https://www.cnblogs.com/mrnx2004/p/9993160.html
Copyright © 2011-2022 走看看