后面使用scp -r 拷贝整个目录过去,启动slave报错。后来写了个脚本,批量修复:
#!/bin/sh
/usr/local/mysql/bin/myisamchk -of ./sundiszuzx/$1
/usr/local/mysql/bin/myisamchk -r ./sundiszuzx/$1
/usr/local/mysql/bin/myisamchk --safe-recover ./sundiszuzx/$1
原文:http://blog.51cto.com/xingyun/2059481