$i = 0;$i++;if (is_readable('/etc/phpmyadmin/config-db.PHP')) { require('/etc/phpmyadmin/config-db.PHP');} else { error_log('phpmyadmin: Failed to load /etc/phpmyadmin/config-db.PHP.' . ' Check group www-data has read access.');}/* Configure according to dbconfig-common if enabled */if (!empty($dbname)) { /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['password'] = ''; /* Server parameters */ if (empty($dbserver)) $dbserver = 'localhost'; $cfg['Servers'][$i]['host'] = $dbserver; if (!empty($dbport) || $dbserver != 'localhost') { $cfg['Servers'][$i]['connect_type'] = 'tcp'; $cfg['Servers'][$i]['port'] = $dbport; } //$cfg['Servers'][$i]['compress'] = false; /* Select MysqLi if your server has it */ $cfg['Servers'][$i]['extension'] = 'MysqLi'; /* Optional: User for advanced features */ $cfg['Servers'][$i]['controluser'] = $dbuser; $cfg['Servers'][$i]['controlpass'] = $dbpass; /* Optional: Advanced phpmyadmin features */ $cfg['Servers'][$i]['pmadb'] = $dbname; $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]['designer_coords'] = 'pma_designer_coords'; $cfg['Servers'][$i]['tracking'] = 'pma_tracking'; /* Uncomment the following to enable logging in to passwordless accounts,* after taking note of the associated security risks. */ $cfg['Servers'][$i]['Allownopassword'] = TRUE; /* Advance to next server for rest of config */ $i++;}/* Authentication type *///$cfg['Servers'][$i]['auth_type'] = 'cookie';/* Server parameters *///$cfg['Servers'][$i]['host'] = 'localhost';//$cfg['Servers'][$i]['connect_type'] = 'tcp';//$cfg['Servers'][$i]['compress'] = false;/* Select MysqLi if your server has it *///$cfg['Servers'][$i]['extension'] = 'MysqL';/* Optional: User for advanced features */// $cfg['Servers'][$i]['controluser'] = 'pma';// $cfg['Servers'][$i]['controlpass'] = 'pmapass';/* Optional: Advanced phpmyadmin features */// $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]['designer_coords'] = 'pma_designer_coords';/* Uncomment the following to enable logging in to passwordless accounts,* after taking note of the associated security risks. */// $cfg['Servers'][$i]['Allownopassword'] = TRUE;/* * End of servers configuration *//* * DirectorIEs for saving/loading files from server */$cfg['UploadDir'] = '';$cfg['SaveDir'] = '';解决方法 靠近底部的第二行:
/* Uncomment the following to enable logging in to passwordless accounts,* after taking note of the associated security risks. */// $cfg['Servers'][$i]['Allownopassword'] = TRUE;
这条线,也需要注释.
总结以上是内存溢出为你收集整理的不能以root身份登录,没有密码到phpmyadmin全部内容,希望文章能够帮你解决不能以root身份登录,没有密码到phpmyadmin所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)