mysqladmin  MySQL客户端管理工具

  flush-hosts           Flush all cached hosts (max_connect_errors)
                        刷新主机缓冲中的所有信息
  flush-logs            Flush all logs
                        刷新所有日志
  flush-status          Clear status variables
                        清除状态变量
  flush-tables          Flush all tables
                        刷新所有表
  flush-threads         Flush the thread cache
                        刷新线程缓存
  flush-privileges      Reload grant tables (same as reload)
                        重新载入授权表(类似reload)
  create db_name        Create a new database named db_name.
  debug                 Tell the server to write debug information to the error log.
  drop db_name          Delete the database named db_name and all its tables.
  extended-status       Display the server status variables and their values.
  kill id,id,...
  old-password new-password    修改密码
  password new-password        设置一个新密码
 
-------------------------------------------------------------------------
# mysqladmin -uroot password aixocm      给root设置一个密码
# mysqladmin -uroot -p proc stat    查看Mysql的状态值
Enter password:
+----+------+-----------+----+---------+------+-------+------------------+
| Id | User | Host      | db | Command | Time | State | Info             |
+----+------+-----------+----+---------+------+-------+------------------+
| 8  | root | localhost |    | Query   | 0    |       | show processlist |
+----+------+-----------+----+---------+------+-------+------------------+
Uptime: 148  Threads: 1  Questions: 8  
Slow queries: 0  Opens: 33  Flush tables: 1  
Open tables: 26  Queries per second avg: 0.054
Uptime     --> MySQL服务器已经运行的秒数
Threads    --> 活动线程(客户)的数目
Questions    --> 服务器启动以来客户的问题(查询)数目
Slow Query    --> 执行时间超过long_query_time秒的查询的数量
Opens    --> 服务器已经打开的数据库表的数量
Flush tables    --> 服务器已经执行的flush ...、refresh和reload命令的数量
Open tables    --> 目前打开的表的数量

# mysqladmin -uroot -paixocm version  --> 通过mysqladmin查看数据库版本
mysqladmin  Ver 8.42 Distrib 5.1.52, for redhat-linux-gnu on i386
Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Server version        5.5.20-ndb-7.2.5
Protocol version    10
Connection        Localhost via UNIX socket
UNIX socket        /var/lib/mysql/mysql.sock
Uptime:            4 min 8 sec

Threads: 1  Questions: 9  Slow queries: 0  Opens: 33  Flush tables: 1  Open tables: 26  Queries per second avg: 0.036

mysqladmin的用法简介相关推荐

  1. MSSQL Sql加密函数 hashbytes 用法简介

    原文:MSSQL Sql加密函数 hashbytes 用法简介 转自:http://www.maomao365.com/?p=4732 一.mssql sql hashbytes 函数简介 hashb ...

  2. Postman用法简介-Http请求模拟工具

    Postman用法简介-Http请求模拟工具 在我们平时开发中,特别是需要与接口打交道时,无论是写接口还是用接口,拿到接口后肯定都得提前测试一下,这样的话就非常需要有一个比较给力的Http请求模拟工具 ...

  3. InputStreamReader 和 OutputStreamWriter类用法简介,及演示。

    InputStreamReader 和 OutputStreamWriter类用法简介. 一.InputStreamReader类 InputStreamReader 将字节流转换为字符流.是字节流通 ...

  4. php中__FILE__常量用法简介

    php中__FILE__常量用法简介 http://blog.csdn.net/xbei07/article/details/5616020#comments出处 1.php中的__FILE__常量返 ...

  5. java test 用法,pytest基本用法简介

    1.安装pytest,打开dos窗口输入: pip install pytest 2.通过pycharm工具下载 3.创建pytest测试用例步骤 # 定义测试类 class testdivide: ...

  6. SAP Gateway与OData用法简介

    本文将分别从基础原理和实际应用两个角度介绍SAP Gateway与OData相关的知识点. 1 相关的事务代码(t-code) SEGW - SAP Gateway Service Builder / ...

  7. Matlab中 intlinprog函数用法简介

    Matlab中 intlinprog函数用法简介 本来想要自己亲手写一遍的,发现了一优质博文基本上跟我做过的例题大差不差,所以就直接放上链接. 参考链接 https://www.cnblogs.com ...

  8. intersect的用法简介

    intersect的用法简介 在Oracle中,"A minus B"用于将结果集B中含有的记录从结果集A中移除,即用于获取存在于结果集A中而不存在于结果集B中的记录:" ...

  9. Oracle SQL调优系列之no_unnest和unnest用法简介

    Oracle调优之no_unnest和unnest用法简介 本博客介绍Oracle SQL调优的一种常用也是很实用的方法,也即/*+no_unnest */和/*+ unnest*/,介绍Oracle ...

最新文章

  1. 常见SMT极性元器件识别方法(图解)
  2. idea 这么还原debug_看源码,我为什么推荐IDEA ?
  3. java生成唯一有序序列号_分布式唯一 ID 之 Snowflake 算法
  4. System V 消息队列
  5. 长连接的定义及其优缺点 以及在不同的浏览器中的支持情况
  6. 大数据之-Hadoop3.x_MapReduce_概述优缺点---大数据之hadoop3.x工作笔记0082
  7. PHP表单省市县三级联动,用php做省份的三级联动 附带数据库
  8. 20个BT下载网站,BT种子网站
  9. github上成员贡献量_精确统计github贡献者的代码行数
  10. sublime Mac版怎么安装? Mac下载安装sublime的教程
  11. 基于历史对比学习的时序知识图谱推理
  12. 关于电视盒子/XBOX/手机使用kodi访问局域网下的windows电脑文件/电影
  13. 【爬虫修炼和实战】二、从requests开始——爬取喜马拉雅全站音频数据(基础篇)
  14. Python3 实现简易局域网视频聊天工具
  15. micropython实现mpy的ota(有用,推荐)
  16. java毕业设计乐居租房网的设计与实现Mybatis+系统+数据库+调试部署
  17. jquery.chained与jquery.chained.remote使用以及区别
  18. C# 无法加载DLL (异常来自 HRESULT:0x8007007F)
  19. 数据库设计(表与表之间的3种关系)
  20. 加快区块链建设!这所一流大学成立了实验室

热门文章

  1. lc滤波电路电感电容值选择_几种常见的无源滤波电路
  2. Google搜索时如何在新标签页打开搜索结果
  3. 属于你的舞台——安卓优化大师UI设计
  4. 移动互联网十年内难以盈利 莫盲目跟风
  5. UEFI Drivers UEFI Driver Model
  6. pandas操作excel,matplotlib.pyplot画图插入到excel,处理复杂excel简单练习
  7. usleep java_sleep()和usleep()的使用和区别
  8. transformer论文研读
  9. Java语言与C语言的区别
  10. NTC热敏电阻电阻与温度之间的转换公式