mysqlheck [option] db_name [tables]

-c --check(检查表)

-r  --repair(修复表)

-a  --analyze(分析表)

-o  --optimize(检查表)

[root@node01 sakila]# mysqlcheck -S /tmp/mysql3306.sock -uroot -p -c qq
Enter password:
qq.book OK
qq.comps_test1 OK
qq.comps_test2 OK
qq.course OK
qq.course2 OK
qq.gen OK
qq.myisam_char OK
qq.mytest OK
qq.qt OK
qq.rc1 OK
qq.t OK
qq.t1 OK
qq.t2 OK
qq.t5 OK
qq.t6 OK
qq.t_ai_1 OK
qq.t_lock_1 OK
qq.t_lock_2 OK
qq.t_lock_4 OK
qq.t_lock_8 OK
qq.tcv OK
qq.teacher OK
qq.teacher2 OK
qq.teacherCard OK
qq.test01 OK
qq.test_bin_1 OK
qq.test_heap OK
qq.test_index_1 OK
qq.test_rc OK
qq.test_xa_1 OK
qq.tid OK
qq.trans_test_1 OK
qq.trans_test_2 OK
qq.ts OK
qq.tt OK
qq.tt4 OK
qq.tt5 OK
qq.tx OK
qq.userinfo OK
[root@node01 sakila]# mysqlcheck -S /tmp/mysql3306.sock -uroot -p -r qq
Enter password:
qq.book
note : The storage engine for the table doesn't support repair
qq.comps_test1
note : The storage engine for the table doesn't support repair
qq.comps_test2
note : The storage engine for the table doesn't support repair
qq.course
note : The storage engine for the table doesn't support repair
qq.course2
note : The storage engine for the table doesn't support repair
qq.gen
note : The storage engine for the table doesn't support repair
qq.myisam_char OK
qq.mytest
note : The storage engine for the table doesn't support repair
qq.qt
note : The storage engine for the table doesn't support repair
qq.rc1 OK
qq.t
note : The storage engine for the table doesn't support repair
qq.t1
note : The storage engine for the table doesn't support repair
qq.t2
note : The storage engine for the table doesn't support repair
qq.t5
note : The storage engine for the table doesn't support repair
qq.t6
note : The storage engine for the table doesn't support repair
qq.t_ai_1
note : The storage engine for the table doesn't support repair
qq.t_lock_1
note : The storage engine for the table doesn't support repair
qq.t_lock_2
note : The storage engine for the table doesn't support repair
qq.t_lock_4
note : The storage engine for the table doesn't support repair
qq.t_lock_8
note : The storage engine for the table doesn't support repair
qq.tcv
note : The storage engine for the table doesn't support repair
qq.teacher
note : The storage engine for the table doesn't support repair
qq.teacher2
note : The storage engine for the table doesn't support repair
qq.teacherCard
note : The storage engine for the table doesn't support repair
qq.test01
note : The storage engine for the table doesn't support repair
qq.test_bin_1
note : The storage engine for the table doesn't support repair
qq.test_heap
note : The storage engine for the table doesn't support repair
qq.test_index_1
note : The storage engine for the table doesn't support repair
qq.test_rc
note : The storage engine for the table doesn't support repair
qq.test_xa_1
note : The storage engine for the table doesn't support repair
qq.tid
note : The storage engine for the table doesn't support repair
qq.trans_test_1
note : The storage engine for the table doesn't support repair
qq.trans_test_2
note : The storage engine for the table doesn't support repair
qq.ts
note : The storage engine for the table doesn't support repair
qq.tt
note : The storage engine for the table doesn't support repair
qq.tt4
note : The storage engine for the table doesn't support repair
qq.tt5
note : The storage engine for the table doesn't support repair
qq.tx
note : The storage engine for the table doesn't support repair
qq.userinfo
note : The storage engine for the table doesn't support repair
[root@node01 sakila]# mysqlcheck -S /tmp/mysql3306.sock -uroot -p -a qq
Enter password:
qq.book OK
qq.comps_test1 OK
qq.comps_test2 OK
qq.course OK
qq.course2 OK
qq.gen OK
qq.myisam_char OK
qq.mytest OK
qq.qt OK
qq.rc1 OK
qq.t OK
qq.t1 OK
qq.t2 OK
qq.t5 OK
qq.t6 OK
qq.t_ai_1 OK
qq.t_lock_1 OK
qq.t_lock_2 OK
qq.t_lock_4 OK
qq.t_lock_8 OK
qq.tcv OK
qq.teacher OK
qq.teacher2 OK
qq.teacherCard OK
qq.test01 OK
qq.test_bin_1 OK
qq.test_heap OK
qq.test_index_1 OK
qq.test_rc OK
qq.test_xa_1 OK
qq.tid OK
qq.trans_test_1 OK
qq.trans_test_2 OK
qq.ts OK
qq.tt OK
qq.tt4 OK
qq.tt5 OK
qq.tx OK
qq.userinfo OK
[root@node01 sakila]# mysqlcheck -S /tmp/mysql3306.sock -uroot -p -o qq
Enter password:
qq.book
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.comps_test1
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.comps_test2
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.course
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.course2
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.gen
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.myisam_char OK
qq.mytest
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.qt
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.rc1
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.t
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.t1
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.t2
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.t5
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.t6
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.t_ai_1
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.t_lock_1
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.t_lock_2
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.t_lock_4
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.t_lock_8
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.tcv
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.teacher
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.teacher2
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.teacherCard
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.test01
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.test_bin_1
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.test_heap
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.test_index_1
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.test_rc
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.test_xa_1
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.tid
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.trans_test_1
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.trans_test_2
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.ts
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.tt
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.tt4
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.tt5
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.tx
note : Table does not support optimize, doing recreate + analyze instead
status : OK
qq.userinfo
note : Table does not support optimize, doing recreate + analyze instead
status : OK

mysqlcheck(MyISAM表维护工具)的更多相关文章

  1. mysql 开发进阶篇系列 34 工具篇 mysqlcheck(MyISAM表维护工具)

    一.概述 mysqlcheck客户端工具可以检查和修复MyISAM表,还可以优化和分析表.实际上,它集成了mysql工具中check,repair,analyze,optimize功能,对于check ...

  2. sap表维护工具来维护自定义表&视图簇的使用

    一.通过表维护工具维护自定义表 1.SE11创建表 2.se11界面的菜单:实用程序->Table Maintenance Generator其实这里就是调用SE54 3.sm30 调用维护好的 ...

  3. restapi(2)- generic restful CRUD:通用的restful风格数据库表维护工具

    研究关于restapi的初衷是想搞一套通用的平台数据表维护http工具.前面谈过身份验证和使用权限.文件的上传下载,这次来到具体的数据库表维护.我们在这篇示范里设计一套通用的对平台每一个数据表的标准维 ...

  4. mysql 开发进阶篇系列 31 工具篇(mysql连接工具与MyISAM表压缩工具)

    一.mysql 连接工具 在mysq提供的工具中,DBA使用最频繁的莫过于mysql.这里的mysql是指连接数据库的客户端工具. 1.1 连接选项 -u, -- user=name 指定用户名 -p ...

  5. MyISAM表的维护和恢复

    本节将讨论如何使用myisamchk检查和修复MyISAM表. 同时,你可以用myisamchk来检查,修复和优化数据库表.下面将讲述如何执行这些操作并建立维护计划. 虽然使用myisamchk很安全 ...

  6. MySQL优化篇系列文章(二)——MyISAM表锁与InnoDB锁问题

    我可以和面试官多聊几句吗?只是想... MySQL优化篇系列文章(基于MySQL8.0测试验证),上部分:优化SQL语句.数据库对象,MyISAM表锁和InnoDB锁问题. 面试官:咦,小伙子,又来啦 ...

  7. Wsyscheck(系统检测维护工具) v1.68.33绿色版

    软件名称:系统检测维护工具(Wsyscheck) v1.68.33绿色版软件类别:国产软件运行环境:windows软件语言:简体中文授权方式:免费版软件大小:1022 KB软件等级:整理时间:2011 ...

  8. abap 开发之创建表维护生成器

    在sap开发中有时需要对一些自建表维护数据,但又不想写程序,怎么办呢??这个时候我们可以直接生成个表维护生成器,为其定义一个事物码就ok了.以下是表格维护生成器的生成步骤. 首先我们需要先定义表.输入 ...

  9. 锁(MySQL篇)—之MyISAM表锁

    前言 锁是计算机协调多个进程或线程并发访问某一资源的机制,在数据库中,除传统的计算资源(如CPU.RAM.I/O等)的争用以外,数据也是一种供许多用户共享的资源.如何保证数据并发访问的一致性.有效性是 ...

随机推荐

  1. [转帖]浅谈响应式编程(Reactive Programming)

    浅谈响应式编程(Reactive Programming) https://www.jianshu.com/p/1765f658200a 例子写的非常好呢. 0.9312018.02.14 21:22 ...

  2. [转帖]Hive基础(一)

    Hive基础(一) 2018-12-19 15:35:03 人间怪物 阅读数 234   版权声明:本文为博主原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明. 本文链接 ...

  3. Quartz.Net—TriggerBuilder

    TriggerBuilder TriggerBuilder是一个建造者模式,链式建造.通过静态方法构建一个TriggerBuilder实例,然后再调用类方法Build()创建一个ITrigger的实现 ...

  4. 用jquery和php实现ajax异步请求响应

    ajax技术可以实现异步请求和响应,下面的是用jquery向一个php脚本发送异步请求,并得到响应. 第一步,准备好前台的html表单,和jquery实现的ajax请求 <html lang=& ...

  5. AJAX一些注释掉的语句

    var sysdept=JSON.parse(localStorage.getItem("loginSysUser")); for(var o in sysdept){ alert ...

  6. AS3.0 位图(BMP)解析类

    /** * *-----------------------------* * | *** BMP格式解析类 *** | * *-----------------------------* * * 编 ...

  7. js复制内容到粘贴板

    点击右边内容:<span onclick="copyContent(this);" title="点击复制">啊,我被复制了</span> ...

  8. Eclipse RCP难点:给Command传递参数(Object)

    这个问题网络上没有答案,国外网站上也没有,本人研究了一天,终于搞明白如何实现,实际上是Eclipse RCP的ICommandService本身就已经提供的方法,只是网络上教的都是使用IHandler ...

  9. springboot 使用consul 读取配置文件(遇到的坑太多,没记录)

    最终成功版. pom引入mavn依赖: <!--consul--> <dependency> <groupId>org.springframework.cloud& ...

  10. webpack 3.1 升级webpack 4.0

    webpack 3.1 升级webpack 4.0 为了提升打包速度以及跟上主流技术步伐,前段时间把项目的webpack 升级到4.0版本以上 webpack 官网:https://webpack.j ...