1

检查状态时,我在 mysql 中收到错误

mysql>SHOW MYSQL STATUS\G;

Last_SQL_Error: Error 'Incorrect key file for table './aaa_bbb/abcd_xxyyzz.MYI';
try to repair it' on query. Default database: 'aaa_bbb'.
Query: 'UPDATE abcd_xxyyzz SET abcd_xxyyzz = 12345678912, abcd_xxyyzz = 'posting.php?mode=reply&f=23&t=156&confirm_key=4DGHJNBFTH', abcd_xxyyzz_id = 11 WHERE abcd_xxyyzz_id='2dfggrehtrhfdfvsdasdsas2fsd1fdf45'

有人可以帮助解决这个问题吗?

4

1 回答 1

0

我们可以通过修复表来解决此问题。在 mysql 命令提示符下:

mysql -u username -p password
mysql> use aaa_bbb;
mysql> repair table abcd_xxyyzz;
mysql> slave stop;
mysql> slave start;
于 2013-03-19T22:05:55.517 回答