

Sometimes instead of writing DOWNLOAD, you have written DOWNLOAD, then this command is not understood automatically, and this error will display on your screen. So, let us find out those reasons.Īn Error 1064 mostly occurs if you have mistyped any of the commands in the MySQL Database. There are possible reasons behind MySQL Error Code 1064. MySQL creates the index row by row instead of creating one index at a time with sorting.Now, let us understand why this error occurs in the MySQL database system. Repair Table tries to repair only the index tree. Repair a possibly corrupted table and returns a result set. Currently, MySQL supports optimizing only for MyISAM, InnoDB and BDB tables. Deleted records are maintained in a linked list and subsequent INSERT operations

You should optimize a table if you have deleted a large part of a table or if you have made many changes to a table with variable-length rows (tables that have VARCHAR, BLOB, or TEXT columns). The main reason for optimizing your table is to reclaim unused space and to defragment the data file. This ensures that the table is 100 % consistent, but will take a long time. Only check tables which have been changed since last check or haven't been closed properly.ĭo a full key lookup for all keys for each row. Run the CHECK TABLE statement without an extra option.ĭon't scan the rows to check for wrong links.Ĭheck only tables that have not been closed properly. For MyISAM tables, the key statistics are updated as well. Currently, MySQL supports checking only for MyISAM, InnoDB and ARCHIVE tables. Currently, MySQL supports analyzing only for MyISAM, BDB, and InnoDB tables.Ĭheck a table or tables for errors. For InnoDB the table is locked with a write lock. During the analysis, the table is locked with a read lock for MyISAM and BDB. Analyze and store the key distribution for the table.
