首页 » SEO优化 » php修复表技巧_mysqlcheck 修复数据库表

php修复表技巧_mysqlcheck 修复数据库表

访客 2024-12-10 0

扫一扫用手机浏览

文章目录 [+]

1、修复某个数据库所有表

mysqlcheck -r -uroot -p dbname

2、修复指定表

php修复表技巧_mysqlcheck 修复数据库表

mysqlcheck -r -uroot -p dbname tablename

3、修复所有数据库表

php修复表技巧_mysqlcheck 修复数据库表
(图片来自网络侵删)

mysqlcheck -A -o -r -p -uroot -p

4、自动检讨、优化修复、剖析所有表

mysqlcheck -Aao --auto-repair -uroot -p

5、myisamchk 修复表

myisamchk -r 数据文件目录/数据表名.MYI myisamchk -r /www/wdlinux/mysql/var//.MYI #如数据库表比较大修复失落败,可加--sort_buffer_size=2Gmyisamchk -r /www/wdlinux/mysql/var//.MYI --sort_buffer_size=2G

6、mysqlcheck 常用选项

-A, –all-databases 表示所有库-a, –analyze 剖析表-o, –optimize 优化表-r, –repair 修复表缺点-c, –check 检讨表是否出错–auto-repair 自动修复破坏的表-B, –databases 选择多个库-1, –all-in-1 Use one query per database with tables listed in a comma separated way-C, –check-only-changed 检讨表末了一次检讨之后的变动-g, –check-upgrade Check for version dependent changes in the tables-F, –fast Check tables that are not closed properly–fix-db-names Fix DB names–fix-table-names Fix table names-f, –force Continue even when there is an error-e, –extended Perform extended check on a table. This will take a long time to execute.-m, –medium-check Faster than extended check option, but does most checks-q, –quick Faster than medium check option

标签:

相关文章

紧缩前缀树php技巧_go实现前缀树

在leecode上面208便是前缀树这个题目,可以看一下。下面这个图片便是关于前缀树的描述和查找字符的过程。前缀树的实现实现前缀树...

SEO优化 2024-12-12 阅读0 评论0