zoukankan      html  css  js  c++  java
  • Mysql—常见查询命令

    查询mysql的日志

    -- 查找错误日志文件路径
    mysql> show variables like "log_error";
    -- 查找通用日志文件路径
    mysql> show variables like "general_log_file";
    -- 查找慢查询日志文件路径
    mysql> show variables like "slow_query_log_file";

    查找mysql的连接数:show status 查看所有状态参数,其中Threads_connected 当前的连接数。

    mysql> show global status like "%connect%";
    

    查看mysql的运行时长

    mysql> show global status like "uptime";

    查看mysql的版本信息

    mysql> select version();
    mysql> show variables like '%version%';
    

      

      

  • 相关阅读:
    HTTP协议
    php目录操作
    PHP有关类的相关知识
    PHP设计模式
    PHP类的继承
    PHP重写
    php类中成员
    php面向对象
    什么是SVN
    ThinkPHP5 初识路由
  • 原文地址:https://www.cnblogs.com/liuhaidon/p/11671920.html
Copyright © 2011-2022 走看看