PhpMyAdmin error with config file

前端 未结 8 1387
庸人自扰
庸人自扰 2021-01-01 16:26

Errors are:

The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. To find out why click

8条回答
  •  心在旅途
    2021-01-01 16:44

    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.

提交回复
热议问题