MySQL dropping all indexes from table

后端 未结 4 752
小鲜肉
小鲜肉 2021-01-17 10:27

I have a MySQL database that runs for some time now with many changes on it. Lately I looked over it and I noticed that in some cases I have doubled the index on the same fi

4条回答
  •  情深已故
    2021-01-17 10:52

    no there isnt a command. you can however write a script that shows all databases, shows all tables inside thowe databases, shows all indexes inside those tables and drops them all. but i'n not gonna write that for you if you don't start accepting some answers. you can also use phpmyadmin or another graphical tool to select this neat "check all" box for every table.

提交回复
热议问题