Mysql “select * from” doesn't return all rows

后端 未结 1 1010
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-12 03:55

I\'m used to PostgreSQL and don\'t understand this behaviour on MySQL.

This table (from SugarCRM) has 3057 rows:

mysql> SELECT  count(*) FROM task         


        
相关标签:
1条回答
  • 2021-01-12 04:35

    Generally MyISAM table format is very reliable but tables can sometime get corrupted for various reasons like Hardware failures, mysqld process is killed while a write operation is underway, untimely shutdowns or bugs in the MySQL or MyISAM code. If you're using a very old version then bugs are likely.

    Before repairing it is recommended that you backup. To repair

    REPAIR [NO_WRITE_TO_BINLOG | LOCAL] TABLE
    tbl_name [, tbl_name] ...
    [QUICK] [EXTENDED] [USE_FRM]
    
    0 讨论(0)
提交回复
热议问题