How do I check if an index exists on a table field in MySQL?

Sean picture Sean · Sep 24, 2008 · Viewed 99.2k times · Source

I've needed to Google this a couple times, so I'm sharing my Q/A.

Answer

Sean picture Sean · Sep 24, 2008

Use SHOW INDEX like so:

SHOW INDEX FROM [tablename]

Docs: https://dev.mysql.com/doc/refman/5.0/en/show-index.html