New version of PHPMyAdmin has stopped me being able to edit data

后端 未结 7 1931
不知归路
不知归路 2020-12-17 18:12

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         


        
相关标签:
7条回答
  • 2020-12-17 18:38

    You can just add a field that name is "id", and check A_I option.

    0 讨论(0)
  • 2020-12-17 18:38

    In my experience, you have more than 2 primary keys or you don't have any primary key.

    0 讨论(0)
  • 2020-12-17 18:40

    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?

    0 讨论(0)
  • 2020-12-17 18:43

    Before checking the AUTO_INCREMENT option, check that the column is INT instead of VARCHAR.

    0 讨论(0)
  • 2020-12-17 18:45

    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

    enter image description here

    0 讨论(0)
  • 2020-12-17 18:45

    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.

    0 讨论(0)
提交回复
热议问题