Two little problems when upgrading phpmyadmin to 3.3.5.1

    Updating the server yesterday to the current state using " emerge -uD world ", I discovered two small problems with phpmyadmin version 3.3.5.1, the solution of which had to kill some of my precious time. One problem is related to phpmyadmin per se, the other is related to the features of installing it in gentoo.



    "No databases"


    Going into the freshly updated phpmyadmin, you can find that there are no databases at all - the lone “No databases” is written in the left frame. After a few minutes, stepping back from the shock and wiping off cold sweat, we find that the bases are actually in place, they are working, only they are not shown in myadmin. The solution - it is necessary in config.inc.php , which probably has not changed for many years, add the lines: which are now required. In config.sample.inc.php , by the way, these parameters are not. Solution source: forums.gentoo.org/viewtopic-p-6404523.html

    $cfg['Servers'][$i]['only_db'] = array('%');
    $cfg['Servers'][$i]['hide_db'] = '';




    Some links are missing in the interface


    In particular, there is no “Refresh” link, no column headings, etc. Here the gentoo-specific problem is webapp-config , instead of replacing the phpmyadmin / libraries / config.default.php file , it creates a new file in the form phpmyadmin / libraries /._ cfgXXXX_config.default.php (where XXXX increases by one with each update ), obviously believing that it contains some settings. Riot of cars in action.

    The problem is that the changes made by the latest update are critical for health, and dispatch-conf does not look for updates to configuration files in / var / www / localhost / htdocs / phpmyadmin .

    A simple solution:

    cd /var/www/localhost/htdocs/phpmyadmin/libraries
    cp ._cfg<последняя версия>_config.default.php config.default.php

    Also popular now: