升级php7后,phpmyadmin出现问题处理

一、问题:The mbstring extension is missing. Please check your PHP configuration.
解决:1、(ubuntu)sudo apt-get install php-mbstring
   (centos)yum install php-mbstring
  2、(ubuntu)sudo service httpd restart 
 (centos)sudo service apache2 restart

二、问题:The mcrypt extension is missing. Please check your PHP configuration.
解决:1、sudo apt-get install php7.0-mcrypt
 2、sudo service apache2 restart

三、问题: The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click here.
解决:
I solved this problem with the following :
 
    
 
    

cd /usr/share/doc/phpmyadmin/examples
sudo gunzip create_tables.sql.gz
mysql -u root -p < create_tables.sql


Edited /etc/phpmyadmin/config-db.php on this lines:

 
    
 
    

$dbname='phpmyadmin';


Then edited /etc/phpmyadmin/config.inc.php on these lines :

 
    

/* Optional: User for advanced features */
$cfg['Servers'][$i]['controluser'] = 'pma';
$cfg['Servers'][$i]['controlpass'] = 'pmapassword';


Logged back in phpmyadmin, and then, the warning message had disappeared.

Also note that you may have a new warning about phpmyadmin storage not completely configured. This can be caused because you need to tell phpmyadmin the name of the tables to use their features. That can be done editing /etc/phpmyadmin/config.inc.php on this lines:

 
    
 
    

$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';

Note the double underscore __

特别注意,原始的pma后面都是一个下划线,要改成两个。

In Short, whatever is the missing component error showing up just Add:

 
    

$cfg['Servers'][$i][COMPONENT] = 'pma__COMPONENT';

in /etc/phpmyadmin/config.inc.php

就是在phpmyadmin中当点击了问题名的最后一个单词here后,显示的是什么$cfg['Servers'][$i][COMPONENT] not ok,就在/etc/phpmyadmin/config.inc.php中加入一行$cfg['Servers'][$i][COMPONENT] = 'pma__COMPONENT';

你可能感兴趣的:(PHP)