phpMyAdmin configuration storage is not completely configured

前端 未结 5 634
粉色の甜心
粉色の甜心 2021-02-02 03:22

I have installed xampp 5.6.14 on windows. I open phpmyadmin http://localhost/phpmyadmin/

but warning

! The phpMyAdmin configuration storage is not

5条回答
  •  故里飘歌
    2021-02-02 03:59

    resolving configuration storage problem in xampp in windows :

    go to import tab in localhost/phpmyadmin and

    browse xampp\phpMyAdmin\sql folder and select create_tables.sql and

    then click go button

    now phpmyadmin db added to your db list

    now we must create user account for this db :

    users tab and click add user

    name : pma

    password : pmapass

    and click go

    for privilege of this user create a file : pma_privileges.sql

    with this content :

    ON mysql.* TO 'pma'@'localhost';
    GRANT 
    SELECT
    ( Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv ) 
       ON mysql.user TO 'pma'@'localhost';
    GRANT 
    SELECT
       ON mysql.db TO 'pma'@'localhost';
    GRANT 
    SELECT
    (Host, Db, User, Table_name, Table_priv, Column_priv) 
       ON mysql.tables_priv TO 'pma'@'localhost';
    GRANT 
    SELECT
    ,
       INSERT,
       UPDATE
    ,
          DELETE
             ON phpmyadmin.* TO 'pma'@'localhost';
    
    

    and import it by import tab

    now we create db and user with privilege so now

    we must add them to config.inc.php file in xampp\phpMyAdmin folder

    so add these :

        $cfg['Servers'][$i]['controluser'] = 'pma';
        $cfg['Servers'][$i]['controlpass'] = 'pmapass';
        
        /* 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]['userconfig'] = 'pma__userconfig';
        $cfg['Servers'][$i]['recent'] = 'pma__recent';
        $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';
    

    now restart the mysql and browser and the configuration storage error disappear and

    columns after comment in creating table are visible

提交回复
热议问题