解决:
phpmyadmin数据库创建:
打开phpMyAdmin目录,找到create_tables.sql
cd ./sql
就可以看到create_tables.sql,然后把里面的sql语句copy,然后执行,这样,phpmyadmin数据库就创建成功配置config.inc.php文件
打开phpMyAdmin文件夹,找到config.sample.inc.php文件,将它重命名为config.inc.php文件。打开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'] = '密码';
然后就可以启用双重认证了。