📜 ⬆️ ⬇️

Two small problems when upgrading phpmyadmin to

Having updated the server yesterday to the current state through “ emerge -uD world ”, I discovered two minor problems with phpmyadmin version, for the solution of which I had to kill some of my precious time. One problem is related to phpmyadmin per se, the other is related to the peculiarities of installing it in gentoo.

"No databases"

Going into the newly updated phpmyadmin, you can find that there are no databases at all - a lonely “No databases” is written in the left frame. After a few minutes, moving away from the shock and wiping the cold sweat, we find that the bases are actually in place, they work, but they are not shown in myadmin. The solution - in config.inc.php , which probably hasn't changed for many years, you need to add the lines:
$cfg['Servers'][$i]['only_db'] = array('%');
$cfg['Servers'][$i]['hide_db'] = '';

which are now mandatory. By the way, in config.sample.inc.php there are no these parameters. Solution Source: forums.gentoo.org/viewtopic-p-6404523.html

Missing some links in the interface

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

The problem is that the changes made by the latest update are critical for operability, and dispatch-conf is not looking for updating the 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

Source: https://habr.com/ru/post/103005/

All Articles