phpMyAdmin Removing an index

DatabaseIndexingPhpmyadminUnique

Database Problem Overview


I have a column in one of my tables which has been assigned an index. It is preventing me from having two of the same ID number.

I am assuming the reason it is not letting me have two entries of the same ID is because it has been set to be Unique.

I am wondering how do I remove this rule so that I can insert the same ID number several times.

Cheers

Database Solutions


Solution 1 - Database

below the list of your "columns" in the table structure you have a small table called "Indexes". Every row is an index. Find there your unique index and drop it using "drop" symbol (red X). If you have it on more than one column then drop it and recreate without the column you don't want unique

Solution 2 - Database

Follow this steps:-

  1. Click Structure tab of table.
  2. Click Index(below the table).
  3. Click Drop for remove index(s).

enter image description here

Solution 3 - Database

In the tab structure below the table the indexes are listed. In some versions of PHPMyAdmin the index are listed only if you click on "+Indexes" which is easy to overlook.

Solution 4 - Database

ALTER TABLE dbName.table DROP INDEX indexName

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSamuel MeddowsView Question on Stackoverflow
Solution 1 - DatabaseMichael TabolskyView Answer on Stackoverflow
Solution 2 - DatabasevineetView Answer on Stackoverflow
Solution 3 - DatabaseGunnar BernsteinView Answer on Stackoverflow
Solution 4 - Databasesaeid sayadiView Answer on Stackoverflow