PHPMyAdmin 未定义索引:行

2022-01-05 00:00:00 mysql undefined-index phpmyadmin

我在使用 phpMyAdmin 时收到以下错误.每次创建任何表时都会发生这种情况.

I'm receiving the error below when using phpMyAdmin. It's occurring every time I create any table.

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 上,其他任何一个都没有出现错误.

It only occurs on the one Datadase in PHPMyAdmin with no errors popping up on any others.

我已经删除了所有表并再次执行,每次添加新表时仍然出现错误.

I've deleted all the tables and done them again with the error still occurring every time I add a new table.

推荐答案

问题是由于表格中有大写字符.我在表名和字段名中都切换到所有小写字符,问题就消失了.

The problem was due to having uppercase characters in the table. I switched to all lower case characters in both the table and field names and the problem disappeared.

相关文章