本文介绍了$ cfg ['Servers'] [$ i] ['favorite'] ... not OK“的缺少文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

$ cfg ['Servers'] [$ i] ['favorite'] ... not OK
持久喜爱的表格:已禁用

启动PHPmyAdmin 4.3.8时收到的消息。

Is the message I get when starting PHPmyAdmin 4.3.8.

1)此行已添加到config.inc.php

1) This line has been added to config.inc.php

$ cfg ['Servers'] [$ i] ['favorite'] ='pma__favorite';

2)表 pma__favorite 已创建。

3)在文档中,我找不到有关表的内容的信息应该。我也不能找到任何关于:
$ cfg ['Servers'] [$ i] ['favorite'] ='pma__favorite';

3) In the documentation I cannot find information on what the content of the table should be. Nor can I find anything about:$cfg['Servers'][$i]['favorite'] = 'pma__favorite';

所以,我需要做什么才能摆脱消息

So, what do I need to do to get rid of the message

$ cfg ['Servers'] [$ i] ['favorite '] ...不行
持久喜爱的表格:已禁用

推荐答案

从文档中,您可以在config.inc.sample.php中找到它的引用:

It seems to be missing from the documentation however you can find a reference to it in config.inc.sample.php:

$cfg['Servers'][$i]['favorite'] = 'pma__favorite';

将其复制并粘贴到您的config.inc.php中。如果您仍然有错误,则可能没有创建pma__favorite表。它可以通过导入示例/ create_tables.sql或执行从其中复制的以下内容:

Copy and paste that into your config.inc.php. If you still have errors, the pma__favorite table was likely not created. It can be done either by importing examples/create_tables.sql or executing the following which I copied from there:

CREATE TABLE IF NOT EXISTS `pma__favorite` (
  `username` varchar(64) NOT NULL,
  `tables` text NOT NULL,
  PRIMARY KEY (`username`)
)
  COMMENT='Favorite tables'
  DEFAULT CHARACTER SET utf8 COLLATE utf8_bin;

这篇关于$ cfg ['Servers'] [$ i] ['favorite'] ... not OK“的缺少文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 20:27