mysqlcheck(MyISAM表维护工具)

Wesley13
• 阅读 760

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

点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
皕杰报表之UUID
​在我们用皕杰报表工具设计填报报表时,如何在新增行里自动增加id呢?能新增整数排序id吗?目前可以在新增行里自动增加id,但只能用uuid函数增加UUID编码,不能新增整数排序id。uuid函数说明:获取一个UUID,可以在填报表中用来创建数据ID语法:uuid()或uuid(sep)参数说明:sep布尔值,生成的uuid中是否包含分隔符'',缺省为
Jacquelyn38 Jacquelyn38
3年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
Easter79 Easter79
3年前
sql注入
反引号是个比较特别的字符,下面记录下怎么利用0x00SQL注入反引号可利用在分隔符及注释作用,不过使用范围只于表名、数据库名、字段名、起别名这些场景,下面具体说下1)表名payload:select\from\users\whereuser\_id1limit0,1;!(https://o
Stella981 Stella981
3年前
Android蓝牙连接汽车OBD设备
//设备连接public class BluetoothConnect implements Runnable {    private static final UUID CONNECT_UUID  UUID.fromString("0000110100001000800000805F9B34FB");
Stella981 Stella981
3年前
Django中Admin中的一些参数配置
设置在列表中显示的字段,id为django模型默认的主键list_display('id','name','sex','profession','email','qq','phone','status','create_time')设置在列表可编辑字段list_editable
Wesley13 Wesley13
3年前
mysql select将多个字段横向合拼到一个字段
表模式:CREATE TABLE tbl_user (  id int(11) NOT NULL AUTO_INCREMENT,  name varchar(255) DEFAULT NULL,  age int(11) DEFAULT NULL,  PRIMARY KEY (id)
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
为什么mysql不推荐使用雪花ID作为主键
作者:毛辰飞背景在mysql中设计表的时候,mysql官方推荐不要使用uuid或者不连续不重复的雪花id(long形且唯一),而是推荐连续自增的主键id,官方的推荐是auto_increment,那么为什么不建议采用uuid,使用uuid究
Python进阶者 Python进阶者
10个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这