Missing documentation on “$cfg['Servers'][$i]['favorite'] … not OK”

五迷三道 提交于 2019-12-24 13:06:03

问题


$cfg['Servers'][$i]['favorite'] ... not OK Persistent favorite tables: Disabled

Is the message I get when starting PHPmyAdmin 4.3.8.

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

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

2) The table pma__favorite has been created.

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'] ... not OK Persistent favorite tables: Disabled


回答1:


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';

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;


来源:https://stackoverflow.com/questions/28215684/missing-documentation-on-cfgserversifavorite-not-ok

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