开启phpMyAdmin高级功能的设置方法, 启用双重认证 | 一见知得 | Mr J Blog

开启phpMyAdmin高级功能的设置方法, 启用双重认证

Mr J 319903 0

解决:

  1. phpmyadmin数据库创建:
    打开phpMyAdmin目录,找到create_tables.sql
    cd ./sql
    就可以看到create_tables.sql,然后把里面的sql语句copy,然后执行,这样,phpmyadmin数据库就创建成功

  2. 配置config.inc.php文件
    打开phpMyAdmin文件夹,找到config.sample.inc.php文件,将它重命名为config.inc.php文件。

  3. 打开config.inc.php文件,找到下面的语句:

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

    将/ Storage database and tables /语句下面的每一条语句前面的//(双斜杠)和空格全部去掉。

注:
在/ Storage database and tables /句子上面,有下面两行句子:

// $cfg['Servers'][$i]['controluser'] = 'pma';
// $cfg['Servers'][$i]['controlpass'] = 'pmapass';

如果需要,可以修改为:

$cfg['Servers'][$i]['controluser'] = '用户名';
$cfg['Servers'][$i]['controlpass'] = '密码';

然后就可以启用双重认证了。

发表评论
表情 图片 链接 代码

分享
微信
微博
QQ