SQL machinations
Submitted by anabelle.foo on Tue, 2007-07-31 00:00
Recently, when performing a slew of alter table statements, I had to do some checking to verify, that I had not completely destroyed my database.
From unix commandline
$ mysqlshow --status my_table
From mysql commandline
> SHOW TABLE STATUS FROM my_database;
> FLUSH TABLES;
> SHOW INDEX FROM my_table;
> ANALYZE TABLE my_table;
> CHECK TABLE my_table;
> OPTIMIZE TABLE my_table;
> DESCRIBE my_table
Recent comments
35 weeks 2 days ago
39 weeks 4 days ago
1 year 8 weeks ago