I've needed to Google this a couple times, so I'm sharing my Q/A.
Use SHOW INDEX like so:
SHOW INDEX
SHOW INDEX FROM [tablename]
Docs: https://dev.mysql.com/doc/refman/5.0/en/show-index.html
I've got a very large MySQL table with about 150,000 rows of data. Currently, when I try and run SELECT * FROM table WHERE id = '1'; the code runs fine as the ID field is the primary index. However, for a …
How do I see if my database has any indexes on it? How about for a specific table?
What are the differences between PRIMARY, UNIQUE, INDEX and FULLTEXT when creating MySQL tables? How would I use them?