phpMyAdmin issue with specific table cannot edit rows errors with blank where statement

有些话、适合烂在心里 提交于 2019-12-08 09:35:03

问题


Subject pretty much says it all. I have as specific table that PMA just will absolutely not let me edit the rows. I cannot use the inline table editor and and I cannot click the "edit" link for any row.

PMA barfs with a bad query error due to the fact that for one, the "where_clause" parameter is empty in the link code, thus causing it to run some query that looks like this: SELECT * FROM database.table WHERE .... WHERE WHAT?

I have no clue why PMA does not create the edit links correctly. There is most certainly and id column that is unique and set as primary.

I'm using version 4.5.4 on a windows easyphp16.1 set up.

I have tried analyzing, checking, repairing the table with no results.

Does anyone have any idea what the heck would be causing something like this?


回答1:


Are you using lower_case_table_names = 2 in your MySql (my.ini) configuration? Then your probably encountering this bug:

https://github.com/phpmyadmin/phpmyadmin/issues/11816

You can try downgrading to an older phpmyadmin version e.g. 4.4.15.2 until the bug is fixed.




回答2:


This is related with the name of the table. I got the same problem on PMA running on OsX Yosemite. Removing the camelCase should solve the problem.




回答3:


  1. open file: PMA/libraries/DisplayResults.php
  2. find private method: _getModifiedLinks()
  3. in $_url_params object, change 'where_clause' value to $where_clause.' 1=1'


来源:https://stackoverflow.com/questions/35593414/phpmyadmin-issue-with-specific-table-cannot-edit-rows-errors-with-blank-where-st

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!