PHPMyAdmin has just been upgraded by my server admin to v4.0.4.2.
Now I am unable to edit rows in the following table:
CREATE TABLE IF NOT EXISTS `pr
You can just add a field that name is "id", and check A_I option.
In my experience, you have more than 2 primary keys or you don't have any primary key.
Without unique key, there is no way to differentiate between two same records which can exists. Therefore phpMyAdmin can not safely edit the table - you have no clue which of these would end up edited. Do you really want to have duplicate records in this table?
Before checking the AUTO_INCREMENT
option, check that the column is INT
instead of VARCHAR
.
All you got to do is add a unique column like one called id with a index = PRIMARY like the pic, or if you have one already that is called id that are numbers just make it PRIMARY
I had the same issue. In my own case I already had an id column. I dropped the column and recreated it; this time I made it a primary key and ticked A_I (ie Auto-Increment). Everything went fine.
Note: You can only do this if changing your IDs does not affect your work.