Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4991

Warning: Creating default object from empty value in /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php on line 4993

Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/v030397/mysql-qotd/wp-content/plugins/sitepress-multilingual-cms/sitepress.class.php:4991) in /www/htdocs/v030397/mysql-qotd/wp-includes/feed-rss2-comments.php on line 8
Comments on: Question 78: How do you repair this table? http://mysql-qotd.casperia.net/archives/524 mysql 5.0/5.1 questions for learning purposes Fri, 06 Aug 2010 16:56:36 +0000 http://wordpress.org/?v=abc hourly 1 By: plogi http://mysql-qotd.casperia.net/archives/524/comment-page-1#comment-89 plogi Wed, 07 Jul 2010 19:11:17 +0000 http://mysql-qotd.casperia.net/?p=524#comment-89 <b> c Only the "USE_FRM" option of the REPAIR will help you now. Use this option only as a last resort. Afterwards, use "SHOW TABLE STATUS" to check the amount of rows and the auto_increment. If necessary, adjust the value with "ALTER TABLE t1 AUTO_INCREMENT=<value>". As with any REPAIR, make a copy of the table-files first - so that you have something left, in case the REPAIR emtpies your table. </value></b>
c

Only the “USE_FRM” option of the REPAIR will help you now.
Use this option only as a last resort.
Afterwards, use “SHOW TABLE STATUS” to check the amount of rows and the auto_increment.
If necessary, adjust the value with “ALTER TABLE t1 AUTO_INCREMENT=“.
As with any REPAIR, make a copy of the table-files first – so that you have something left, in case the REPAIR emtpies your table.

]]>