我设置了一个用户'pma'@'localhost‘,并设置了密码和SELECT、UPDATE、INSERT、DELETE权限。我有一个数据库phpmyadmin,其中包含从我编辑过的config.inc.php构建的create_tables.sql表。。。
/* User used to manipulate with storage */
$cfg['Servers'][$i]['controlhost'] = 'localhost';
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'XXXXXXXX';
/* Storage database and tables */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
$cfg['Servers'][$i]['relation'] = 'pma_relation';
$cfg['Servers'][$i]['table_info'] = 'pma_table_info';
$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
$cfg['Servers'][$i]['column_info'] = 'pma_column_info';
$cfg['Servers'][$i]['history'] = 'pma_history';
$cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';
$cfg['Servers'][$i]['tracking'] = 'pma_tracking';
$cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';
$cfg['Servers'][$i]['userconfig'] = 'pma_userconfig';
$cfg['Servers'][$i]['recent'] = 'pma_recent';有一件事我从来没有找到文档,那就是将配置选项放在哪些表中,以及以什么格式放置。我将以下代码插入到pma_userconfig表的一行中
username | ''
timevalue | 2013-08-30 12:23:45
config_data |$cfg['NumRecentTables']=0;
$cfg['NavigationTreeDisplayDbFilterMinimum']=999;
$cfg['NavigationTreeEnableGrouping']=FALSE;
$cfg['MaxRows']=100;
$cfg['MaxTableList'] = 100;
$cfg['MaxDBList'] = 100;除了已填充自身的pma_history之外,所有其他表都是空的。
这些配置选项都没有任何效果。我在表记录中尝试了不同的用户名。我已经为每个选项尝试了一个记录。
有人能告诉我这里少了什么吗?这是正确的表格,正确的格式吗?
谢谢。
发布于 2013-09-01 01:08:27
您不必直接编辑这些表:它们由phpMyAdmin填充。例如,当您通过界面创建查询书签时,当您通过设置选项卡更改设置时,等等。
https://stackoverflow.com/questions/18550605
复制相似问题