Home » FreeBSD » phpMyAdmin的"關聯資料表的附加功能未能啟動"
八月
06

某天portupgrade後登入phpMyAdmin,赫然發現底下多了段訊息:關聯資料表的附加功能未能啟動, 請按此查出問題原因。原來這不曉得是幾版以後的新功能,不啟動也不會怎麼樣。至於啟動的方法,視有沒有phpmyadmin這個database而有所不同;有的話,只需更動/usr/local/www/phpMyAdmin/config.inc.php就好了;沒有phpmyadmin這個database的話嘛….有那麼麻煩一些些啦!

mysql>create database phpmyadmin;

mysql>exit;

mysql -u root -p < /usr/local/www/phpMyAdmin/scripts/create_tables.sql

這樣就有phpmyadmin這個database了。接著更動config.inc.php。

$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]['designer_coords'] = ‘pma_designer_coords’;
$cfg['Servers'][$i]['tracking'] = ‘pma_tracking’;

重啟apache,搞定。

Add reply

*