不能以root身份登录,没有密码到phpmyadmin

不能以root身份登录,没有密码到phpmyadmin,第1张

概述这是我的config.inc.php文件,因为我升级到11.10突然之间,我无法以root用户身份登录,没有密码.我已经正确地设置了这些指令,所以这是令人困惑的,为什么它不会允许这个了.任何帮助? $i = 0;$i++;if (is_readable('/etc/phpmyadmin/config-db.php')) { require('/etc/phpmyadmin/confi 这是我的config.inc.PHP文件,因为我升级到11.10突然之间,我无法以root用户身份登录,没有密码.我已经正确地设置了这些指令,所以这是令人困惑的,为什么它不会允许这个了.任何帮助?
$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所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1045268.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存