2013-08-31 164 views
1

我有一個用戶'pma'@'localhost'用密碼和SELECT,UPDATE,INSERT,DELETE權限設置。 我有一個數據庫phpmyadmin與從create_tables.sql構建的表 我編輯了config.inc.php。 。 。配置phpmyadmin配置存儲

/* 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空。

這些配置選項都沒有任何影響。我在表格記錄中嘗試了不同的用戶名。我已經嘗試了每個選項的記錄。

任何人都可以告訴我什麼是在這裏失蹤?這是正確的表格,正確的格式?

謝謝。

回答

1

您不必直接編輯這些表格:它們由phpMyAdmin填充。例如,當您通過界面創建查詢書籤時,當您通過「設置」選項卡等更改設置時。

+0

是的,那終於發生了。我不知道我做了什麼,因爲我一直在嘗試這麼多選項,但是最終在phpmyadmin中設置第一百次前綴後,它們被寫入到userconfig表中。我想最初我的配置中有些東西不正確。謝謝。 – jimlongo