Fix “Configuration of pmadb… not OK” in phpMyAdmin

You may get this message in pmpMyAdmin:

phpmyadmin-pmadb

To fix this you have to import/create the phpmyadmin database with it’s tables. An SQL script called create_tables.sql should be in the scripts, examples or sql folder of your phpMyAdmin installation.

mysql -u root -p < create_tables.sql

Then create a user called pma and give it permissions to the phpmyadmin database:

CREATE USER 'pma'@'localhost' IDENTIFIED BY 'pmapass';
GRANT ALL PRIVILEGES ON `phpmyadmin`.* TO 'pma'@'localhost' WITH GRANT OPTION;
FLUSH PRIVILEGES;

Now edit config.inc.php and configure/uncomment those lines:

/*
 * phpMyAdmin configuration storage settings.
 */

/* User used to manipulate with storage */
$cfg['Servers'][$i]['controlhost'] = 'localhost';
// $cfg['Servers'][$i]['controlport'] = '';
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapass';

/* 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';
$cfg['Servers'][$i]['favorite'] = 'pma__favorite';
$cfg['Servers'][$i]['users'] = 'pma__users';
$cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
$cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
$cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';

Finally logout and login again to phpMyadmin.

Ref: http://stackoverflow.com/questions/21033059/pma-database-not-ok-in-phpmyadmin-upgrade
https://wiki.phpmyadmin.net/pma/Configuration_storage

You might also like

Fix “Class ‘PMA_Message’ not found” in phpMyAdmin with nginx + PHP_FPM
After updating phpMyAdmin I got this error:PHP message: PHP Fatal error: Class 'PMA_Message' not...

Solve “The Alias directive in … will probably never match because ir overlaps an earlier Alias”
This is a warning that happens when starting Apache2.$ sudo service apache2 restart * Restarting...

Solve “The Alias directive in … will probably never match because ir overlaps an earlier Alias”
This is a warning that happens when starting Apache2.$ sudo service apache2 restart * Restarting...

Increase the phpMyAdmin session timeout
Edit your config.inc.php file (in my Ubuntu 12.04 it was located at /etc/phpmyadmin/config.inc.php) and...

  1. Patrick Meppe

    Hello there, I just finished the update to the version 4.7. I have followed all the steps in the UI even copied the configuration from above with no success. Here is the list of the tables causing troubles:
    – $cfg[‘Servers’][$i][‘favorite’]
    – $cfg[‘Servers’][$i][‘central_columns’]
    – $cfg[‘Servers’][$i][‘designer_settings’]
    – $cfg[‘Servers’][$i][‘export_templates’]

    The error message is: not ok … Disabled

    I’m looking forward to hearing from you. Greetings Patrick M.

    • Probably you didn’t run the create_tables.sql script that creates all the tables needed.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.