首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >配置phpmyadmin配置存储

配置phpmyadmin配置存储
EN

Stack Overflow用户
提问于 2013-09-01 01:01:32
回答 1查看 1.3K关注 0票数 1

我设置了一个用户'pma'@'localhost‘,并设置了密码和SELECT、UPDATE、INSERT、DELETE权限。我有一个数据库phpmyadmin,其中包含从我编辑过的config.inc.php构建的create_tables.sql表。。。

代码语言:javascript
复制
/* 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表的一行中

代码语言:javascript
复制
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之外,所有其他表都是空的。

这些配置选项都没有任何效果。我在表记录中尝试了不同的用户名。我已经为每个选项尝试了一个记录。

有人能告诉我这里少了什么吗?这是正确的表格,正确的格式吗?

谢谢。

EN

回答 1

Stack Overflow用户

发布于 2013-09-01 01:08:27

您不必直接编辑这些表:它们由phpMyAdmin填充。例如,当您通过界面创建查询书签时,当您通过设置选项卡更改设置时,等等。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18550605

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档