简体   繁体   English

PhpMyAdmin / MySQL:通过用户界面删除时,WHERE关键字后缺少“ id =”吗?

[英]PhpMyAdmin/MySQL: Missing “id=” after WHERE keyword when deleting via user interface?

I am using PhpMyAdmin 4.5.4.1 and MySql 5.7.10 to work on a school project. 我正在使用PhpMyAdmin 4.5.4.1MySql 5.7.10在学校项目上工作。

PhpMyAdmin and MySql run under Mac OS X El Captain. PhpMyAdmin和MySql在Mac OS X El Captain下运行

Everything works just fine except I am unable to delete/edit/etc. 一切正常,除非我无法删除/编辑/等。 with data entries. 与数据条目。

The screenshot here clearly shows that after "WHERE" keyword, "id=x" is missing. 此处的屏幕截图清楚地表明,在“ WHERE”关键字之后,缺少“ id = x”。

For my entity, "id" is set to be the primary key's name. 对于我的实体,将“ id”设置为主键的名称。

I used default settings to set up MySQL database and PhpMyAdmin. 我使用默认设置来设置MySQL数据库和PhpMyAdmin。

屏幕截图

I have exactly the same problem. 我也有完全一样的问题。 My System is MAcOS El Capitan as well and MYSQL 5.6.19. 我的系统也是MAcOS El Capitan和MYSQL 5.6.19。 I use the newest stable version of PhpMyAdmin 4.6.4 and get the same error Message. 我使用的是PhpMyAdmin 4.6.4的最新稳定版本,并收到相同的错误消息。 Whenever I use an older Version of phpmyadmin (in my case 3.5.7) it is working with no problems at all. 每当我使用旧版本的phpmyadmin(在我的情况下为3.5.7)时,它都不会出现任何问题。 So far I could narrow it down to a Problem with the variable "where_clause", which is always empty. 到目前为止,我可以将其缩小为一个变量“ where_clause”的问题,该变量始终为空。 The strangest thing is, that all tables that do not have an Upper case in its name work fine. 最奇怪的是,名称中没有大写字母的所有表都可以正常工作。 Just those with an Upper Case won't work. 只是那些大写字母不会起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM