【发布时间】:2015-06-02 12:56:55
【问题描述】:
我在使用 phpMyAdmin 时收到以下错误。每次我创建任何表时都会发生这种情况。
Notice in ./libraries/structure.lib.php#1881
Undefined index: Rows
Backtrace
./libraries/structure.lib.php#2382: getHtmlForRowStatsTable(
array,
NULL,
boolean false,
boolean false,
string '',
string '',
)
./libraries/display_structure.inc.php#263: PMA_getHtmlForDisplayTableStats(
string '',
NULL,
NULL,
boolean false,
NULL,
string '?db=btc_orders&table=Rep&token=09aa3ad5cb85e33dad2a2098ed2874e2&goto=tbl_structure.php&back=tbl_structure.php',
NULL,
)
./tbl_structure.php#163: require_once(./libraries/display_structure.inc.php)
它只发生在 PHPMyAdmin 中的一个 Datadase 上,没有任何其他错误弹出。
我已删除所有表并再次执行它们,但每次添加新表时仍会出现错误。
【问题讨论】:
-
当你用步进调试器进去的时候,为什么索引变量的值是错误的?
-
当您使用步进调试器进入时,您通常可以通过在报告的问题位置放置断点来直接查看。
-
在我的情况下,问题已解决,只需将表名设为小写,而列名中仍有大写。
-
问题是一个 phpmyadmin 错误,它无法在语句末尾添加最后一个字段,它以 AFTER 结尾,字段名称丢失。 ALTER TABLE
ocr_filesADDsizeFLOAT NULL AFTER
标签: mysql phpmyadmin undefined-index