PhpMyAdmin error with config file

自闭症网瘾萝莉.ら 提交于 2019-11-30 11:13:28

I too had this same problem. clearing cookies and cache worked for me. try it

If you are using "create_tables.sql" to create the database and tables, change the tables name pma__ to pma_ . (change 2 underscore to 1 underscore)

Or change the tables name in "config.inc.php", pma_ to pma__ (change 1 underscore to 2 underscore).
For example, pma_bookmark to pma__bookmark

$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]['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]['table_uiprefs'] = 'pma__table_uiprefs';

VestaCP Team made and successfully tested error fixer for phpMyAdmin (no more annoying message "The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated"). We hope that fix will be useful and will help users.

Page on Github: https://github.com/skurudo/phpmyadmin-fixer

What the script does:

  • works from user root;
  • changes inside /etc/phpmyadmin/config.inc.php, fixes value;
  • makes a backup of /etc/phpmyadmin/config.inc.php in /root folder; adds in a mysql pma user / and the table phpmyadmin (if the user "pma" or the table "phpmyadmin" already exists, the script will delete those!);
  • download and add table for database phpmyadmin;
  • clean temp files, leftover pma.txt (contains password for pma@localhost) and old config;
$cfg['Servers'][$i]['user'] = 'root'; //mysql username here
$cfg['Servers'][$i]['password'] = 'password'; //mysql password here

Try adding the above configuration lines after $cfg['Servers'][$i]['connect_type'] = 'tcp';

If these also doesn't work then try with a fresh configuration file, may be by copying config.sample.inc.php. Do ensure that it has the above mentioned configuration lines. Check that if it works fine and then start making changes to it step by step, if any changes are to be made..

Please note that the username and password you provide should be able to login you from mysql command prompt..

Please follow these steps :

  1. Create a database named phpmyadmin Import database sql/create_tables.sql
  2. Create a user and Grant access for a user to that database (GRANT ALL PRIVILEGES ON phpmyadmin.* TO user@'localhost' IDENTIFIED BY 'password';)
  3. Locate and edit your config file, enable these lines in your config.inc.php (remove # in front of each lines)

    /* User used to manipulate with storage */
     $cfg['Servers'][$i]['controlhost'] = 'localhost';
     $cfg['Servers'][$i]['controluser'] = 'phpmyadmin_pma';
     $cfg['Servers'][$i]['controlpass'] = 'yourpassword';
    
    /* 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';
    
     /* These lines I added-in because they are not exist in the config_sample.inc.php */
     $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';
    

Please note there are two underscores in between pma__ , you need to make sure it is matched the table name in your database

IF you see this error: $cfg['Servers'][$i]['userconfig'] ... not OK [ Documentation ] User preferences: Disabled

That means your configuration setting is not matched the table's name, or... your user does not have access to the database.

Right in the error page, if you scroll down to the bottom. There is a tip telling you to log out and log in again. Doing this will work

to correct the error, click on the message, after that on top you can si link create, click on create and refresh. this solution work with me.

1) Check if you have phpmyadmin database in your mysql server. Phpmyadmin helps you create its database.

2) Check if you have pma user. If not create it:

CREATE USER  'pma'@'localhost' IDENTIFIED BY 'yourPassword';

The pma password must be the same as the one given in config.inc.php

3) Give privileges to pma:

GRANT ALL PRIVILEGES ON phpmyadmin.* TO `pma`@`localhost` WITH GRANT OPTION;
FLUSH PRIVILEGES;

4) Clear cache and cookies.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!