更新 phpMyAdmin 后出现错误

更新 phpMyAdmin 后出现错误

在我的 Apache/2.4.10 (Debian) 上将 phpMyAdmin 更新到 v4.7.5 后,我得到:

phpMyAdmin 配置存储未完全配置,一些扩展功能已被停用。找出原因。或者,转到任何数据库的“操作”选项卡进行设置。

这就是not OK

https://image.ibb.co/jW3fOG/Bildschirmfoto_2017_11_14_um_17_18_34.png

我添加了以下内容/etc/phpmyadmin/config.inc.php

$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';

但重启后情况仍然一样,仍然是同样的错误。

我做错了什么?我该怎么办?

答案1

这是我解决问题的方法:

将以下几行添加到/etc/phpmyadmin/config.inc.php($cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';但可能位置无关紧要config.inc.php) :

$cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';
$cfg['Servers'][$i]['designer_settings'] = 'pma__designer_settings';
$cfg['Servers'][$i]['export_templates'] = 'pma__export_templates';

然后我创建了一个名为的文件,import.sql其内容如下:https://github.com/phpmyadmin/phpmyadmin/blob/master/sql/create_tables.sql

然后我reboot就准备好了!

错误不再出现!

答案2

由于您似乎正在使用 Debian 打包版本,因此您应该能够使用 对其进行排序dpkg-reconfigure -plow phpmyadmin

您使用的解决方案是我通常建议的,但 Debian 软件包应该比手动处理更容易为您处理此类问题。 这两种解决方案都应该适合您的目的。

相关内容